src/Renderer/StringTemplateRenderer.php
protected function _renderLabel(ItemInterface $item)
    {
        if (!$item->getExtra('escapeLabel', true) ||
            !$item->getExtra('escape', true)
        ) {
            return $item->getLabel();
        }

        return (string)h($item->getLabel());
    }
protected function _renderLabel(ItemInterface $item)
    {
        if (!$item->getExtra('escapeLabel', true) ||
            !$item->getExtra('escape', true)
        ) {
            return $item->getLabel();
        }

        return (string)h($item->getLabel());
    }
protected function _renderLabel ( ItemInterface $ item ) { if ( ! $ item -> getExtra ( 'escapeLabel' , true ) || ! $ item -> getExtra ( 'escape' , true ) ) { return $ item -> getLabel ( ) ; } return ( string ) h ( $ item -> getLabel ( ) ) ; }
Renders a menu item label.

By default the label is being HTML entity encoded, unless explicitly disabled for the given
menu item via the `escape` or `escapeLabel` option.

@param ItemInterface $item The item whose label to render.
@return string The rendered label.
Renders a menu item label .