public function createNamed($type, array $options = [])
    {
        if ($type instanceof BlockInterface) {
            return $type;
        }

        $name = $this->getBlockName($options);

        return $this->factory->createNamed($name, $type, null, $options);
    }
public function createNamed($type, array $options = [])
    {
        if ($type instanceof BlockInterface) {
            return $type;
        }

        $name = $this->getBlockName($options);

        return $this->factory->createNamed($name, $type, null, $options);
    }
public function createNamed ( $ type , array $ options = [ ] ) { if ( $ type instanceof BlockInterface ) { return $ type ; } $ name = $ this -> getBlockName ( $ options ) ; return $ this -> factory -> createNamed ( $ name , $ type , null , $ options ) ; }
Create block named with the 'block_name' options.

@param string|BlockTypeInterface|BlockInterface $type
@param array                                    $options

@return \Fxp\Component\Block\BlockInterface
Create block named with the block_name options .