public function get($block)
    {
        if ($this->enabled) {
            if (!array_key_exists($block, $this->blocks)) {
                throw new \Exception('Block '.$block.' not defined');
            }

            $this->finishBlock($block);

            return $this->blocks[$block];
        }
    }
public function get($block)
    {
        if ($this->enabled) {
            if (!array_key_exists($block, $this->blocks)) {
                throw new \Exception('Block '.$block.' not defined');
            }

            $this->finishBlock($block);

            return $this->blocks[$block];
        }
    }
public function get ( $ block ) { if ( $ this -> enabled ) { if ( ! array_key_exists ( $ block , $ this -> blocks ) ) { throw new \ Exception ( 'Block ' . $ block . ' not defined' ) ; } $ this -> finishBlock ( $ block ) ; return $ this -> blocks [ $ block ] ; } }
Get block info

@param string $block - key to identify block

@return mixed - associative array
@throws \Exception if block not defined
Get block info