public function getManagerInfoByBlockId($idBlock)
    {
        foreach ($this->blockManagers as $index => $blockManager) {
            if ($blockManager->get()->getId() == $idBlock) {
                return array('index' => $index, 'manager' => $blockManager);
            }
        }

        return null;
    }
public function getManagerInfoByBlockId($idBlock)
    {
        foreach ($this->blockManagers as $index => $blockManager) {
            if ($blockManager->get()->getId() == $idBlock) {
                return array('index' => $index, 'manager' => $blockManager);
            }
        }

        return null;
    }
public function getManagerInfoByBlockId ( $ idBlock ) { foreach ( $ this -> blockManagers as $ index => $ blockManager ) { if ( $ blockManager -> get ( ) -> getId ( ) == $ idBlock ) { return array ( 'index' => $ index , 'manager' => $ blockManager ) ; } } return null ; }
Retrieves the block manager and the index by the block's id

@param  int        $idBlock The id of the block to retrieve
@return null|array
Retrieves the block manager and the index by the block s id