Neos\FluidAdaptor\ViewHelpers\Widget\LinkViewHelper::render PHP Метод

render() публичный Метод

Render the link.
public render ( string $action = null, array $arguments = [], string $section = '', string $format = '', boolean $ajax = false, boolean $includeWidgetContext = false ) : string
$action string Target action
$arguments array Arguments
$section string The anchor to be added to the URI
$format string The requested format, e.g. ".html"
$ajax boolean TRUE if the URI should be to an AJAX widget, FALSE otherwise.
$includeWidgetContext boolean TRUE if the URI should contain the serialized widget context (only useful for stateless AJAX widgets)
Результат string The rendered link
    public function render($action = null, $arguments = array(), $section = '', $format = '', $ajax = false, $includeWidgetContext = false)
    {
        if ($ajax === true) {
            $uri = $this->getAjaxUri();
        } else {
            if ($action === null) {
                throw new ViewHelper\Exception('You have to specify the target action when creating a widget URI with the widget.link ViewHelper', 1357648227);
            }
            $uri = $this->getWidgetUri();
        }
        $this->tag->addAttribute('href', $uri);
        $this->tag->setContent($this->renderChildren());
        $this->tag->forceClosingTag(true);
        return $this->tag->render();
    }