‪TYPO3CMS  10.4
TYPO3\CMS\Fluid\ViewHelpers\Widget\UriViewHelper Class Reference
Inheritance diagram for TYPO3\CMS\Fluid\ViewHelpers\Widget\UriViewHelper:

Public Member Functions

 initializeArguments ()
 

Static Public Member Functions

static string renderStatic (array $arguments, \Closure $renderChildrenClosure, RenderingContextInterface $renderingContext)
 

Static Protected Member Functions

static string getAjaxUri (RenderingContextInterface $renderingContext, array $arguments)
 
static string getWidgetUri (RenderingContextInterface $renderingContext, array $arguments)
 

Detailed Description

A ViewHelper for creating URIs to Extbase actions within widgets.

Examples

URI to the show-action of the current controller::

<f:widget.uri action="show" />

/page/path/name.html?tx_myextension_plugin[widgetIdentifier][action]=show&tx_myextension_plugin[widgetIdentifier][controller]=Standard&cHash=xyz

Depending on current page, routing and page path configuration.

Definition at line 37 of file UriViewHelper.php.

Member Function Documentation

◆ getAjaxUri()

static string TYPO3\CMS\Fluid\ViewHelpers\Widget\UriViewHelper::getAjaxUri ( RenderingContextInterface  $renderingContext,
array  $arguments 
)
staticprotected

Get the URI for an AJAX Request.

Parameters
RenderingContextInterface$renderingContext
array$arguments
Returns
‪string the AJAX URI

Definition at line 78 of file UriViewHelper.php.

References $GLOBALS.

◆ getWidgetUri()

static string TYPO3\CMS\Fluid\ViewHelpers\Widget\UriViewHelper::getWidgetUri ( RenderingContextInterface  $renderingContext,
array  $arguments 
)
staticprotected

Get the URI for a non-AJAX Request.

Parameters
RenderingContextInterface$renderingContext
array$arguments
Returns
‪string the Widget URI

Definition at line 101 of file UriViewHelper.php.

◆ initializeArguments()

TYPO3\CMS\Fluid\ViewHelpers\Widget\UriViewHelper::initializeArguments ( )

Initialize arguments

Definition at line 43 of file UriViewHelper.php.

◆ renderStatic()

static string TYPO3\CMS\Fluid\ViewHelpers\Widget\UriViewHelper::renderStatic ( array  $arguments,
\Closure  $renderChildrenClosure,
RenderingContextInterface  $renderingContext 
)
static
Parameters
array$arguments
\Closure$renderChildrenClosure
RenderingContextInterface$renderingContext
Returns
‪string

Definition at line 61 of file UriViewHelper.php.