public function setUpBlockManagers(array $blocks)
    {
        foreach ($blocks as $block) {
            $blockManager = $this->blockManagerFactory->createBlockManager($block);
            if (null === $blockManager) {
                continue;
            }
            $this->blockManagersCollection->addBlockManager($blockManager);
        }
    }
public function setUpBlockManagers(array $blocks)
    {
        foreach ($blocks as $block) {
            $blockManager = $this->blockManagerFactory->createBlockManager($block);
            if (null === $blockManager) {
                continue;
            }
            $this->blockManagersCollection->addBlockManager($blockManager);
        }
    }
public function setUpBlockManagers ( array $ blocks ) { foreach ( $ blocks as $ block ) { $ blockManager = $ this -> blockManagerFactory -> createBlockManager ( $ block ) ; if ( null === $ blockManager ) { continue ; } $ this -> blockManagersCollection -> addBlockManager ( $ blockManager ) ; } }
Sets up the block managers.

When the blocks have not been given, it retrieves all the pages's contents saved on the slot

@param array $blocks

@api
Sets up the block managers .