src/Renderer/StringTemplateRenderer.php
protected function _renderLink(ItemInterface $item, array $options)
    {
        if ($item->getUri() &&
            (
                !$item->isCurrent() ||
                $options['currentAsLink']
            )
        ) {
            return $this->_renderLinkElement($item, $options);
        } else {
            return $this->_renderTextElement($item, $options);
        }
    }
protected function _renderLink(ItemInterface $item, array $options)
    {
        if ($item->getUri() &&
            (
                !$item->isCurrent() ||
                $options['currentAsLink']
            )
        ) {
            return $this->_renderLinkElement($item, $options);
        } else {
            return $this->_renderTextElement($item, $options);
        }
    }
protected function _renderLink ( ItemInterface $ item , array $ options ) { if ( $ item -> getUri ( ) && ( ! $ item -> isCurrent ( ) || $ options [ 'currentAsLink' ] ) ) { return $ this -> _renderLinkElement ( $ item , $ options ) ; } else { return $ this -> _renderTextElement ( $ item , $ options ) ; } }
Renders the link for a menu item.

## Options

- `currentAsLink`: Whether to render active items as links, or as text elements.

@param ItemInterface $item The menu item for which to render a link.
@param array $options The rendering options, see the "Options" section in the method
description specific link options.
@return string The rendered link.
Renders the link for a menu item .