public function renderMeta(ArticleMeta $meta)
    {
        /** @var \Twig_Template $template */
        $template = $this->environment->loadTemplate('VinceCmsBundle::meta.html.twig');
        $blockname = str_ireplace(array(':', '-'), array('_', '_'), Inflector::tableize($meta->getMeta()->getName())).'_meta';
        if ($template->hasBlock($blockname)) {
            return $template->renderBlock($blockname, array(
                    'name' => $meta->getMeta()->getName(),
                    'contents' => $meta->getContents(),
                )
            );
        }

        return $template->renderBlock('meta', array(
                'name' => $meta->getMeta()->getName(),
                'contents' => $meta->getContents(),
            )
        );
    }
public function renderMeta(ArticleMeta $meta)
    {
        /** @var \Twig_Template $template */
        $template = $this->environment->loadTemplate('VinceCmsBundle::meta.html.twig');
        $blockname = str_ireplace(array(':', '-'), array('_', '_'), Inflector::tableize($meta->getMeta()->getName())).'_meta';
        if ($template->hasBlock($blockname)) {
            return $template->renderBlock($blockname, array(
                    'name' => $meta->getMeta()->getName(),
                    'contents' => $meta->getContents(),
                )
            );
        }

        return $template->renderBlock('meta', array(
                'name' => $meta->getMeta()->getName(),
                'contents' => $meta->getContents(),
            )
        );
    }
public function renderMeta ( ArticleMeta $ meta ) { /** @var \Twig_Template $template */ $ template = $ this -> environment -> loadTemplate ( 'VinceCmsBundle::meta.html.twig' ) ; $ blockname = str_ireplace ( array ( ':' , '-' ) , array ( '_' , '_' ) , Inflector :: tableize ( $ meta -> getMeta ( ) -> getName ( ) ) ) . '_meta' ; if ( $ template -> hasBlock ( $ blockname ) ) { return $ template -> renderBlock ( $ blockname , array ( 'name' => $ meta -> getMeta ( ) -> getName ( ) , 'contents' => $ meta -> getContents ( ) , ) ) ; } return $ template -> renderBlock ( 'meta' , array ( 'name' => $ meta -> getMeta ( ) -> getName ( ) , 'contents' => $ meta -> getContents ( ) , ) ) ; }
Render a meta

@author Vincent Chalamon <vincentchalamon@gmail.com>

@param ArticleMeta $meta

@return string
Render a meta