public function addBlockManager(BlockManagerInterface $blockManager, array $attributes)
    {
        if (empty($attributes['type'])) {
            return;
        }

        $blockManager->setFactoryRepository($this->factoryRepository);
        $this->blockManagersItems[] = new BlockManagerFactoryItem($blockManager, $attributes);
    }
public function addBlockManager(BlockManagerInterface $blockManager, array $attributes)
    {
        if (empty($attributes['type'])) {
            return;
        }

        $blockManager->setFactoryRepository($this->factoryRepository);
        $this->blockManagersItems[] = new BlockManagerFactoryItem($blockManager, $attributes);
    }
public function addBlockManager ( BlockManagerInterface $ blockManager , array $ attributes ) { if ( empty ( $ attributes [ 'type' ] ) ) { return ; } $ blockManager -> setFactoryRepository ( $ this -> factoryRepository ) ; $ this -> blockManagersItems [ ] = new BlockManagerFactoryItem ( $ blockManager , $ attributes ) ; }
Adds a block manager base object.

This method is usually called by the BlocksCompilerPass object

@param BlockManagerInterface $blockManager
@param array                   $attributes

@api
Adds a block manager base object .