public function fixContainersPositions(ContentInterface $content)
    {
        $this->sortChildrenByPosition($content, 'containers');

        $containers = $content->getContainers();

        $position = 0;
        foreach ($containers as $container) {
            $container->setPosition($position);
            $position++;
        }

        return $this;
    }
public function fixContainersPositions(ContentInterface $content)
    {
        $this->sortChildrenByPosition($content, 'containers');

        $containers = $content->getContainers();

        $position = 0;
        foreach ($containers as $container) {
            $container->setPosition($position);
            $position++;
        }

        return $this;
    }
public function fixContainersPositions ( ContentInterface $ content ) { $ this -> sortChildrenByPosition ( $ content , 'containers' ) ; $ containers = $ content -> getContainers ( ) ; $ position = 0 ; foreach ( $ containers as $ container ) { $ container -> setPosition ( $ position ) ; $ position ++ ; } return $ this ; }
Fix the containers positions.

@param ContentInterface $content

@return ContentManager
Fix the containers positions .