class UriViewHelper extends AbstractViewHelper (View source)

widget.uri ViewHelper This ViewHelper can be used inside widget templates in order to render URIs pointing to widget actions

= Examples =

{f:widget.uri(action: 'widgetAction')}
--widget[@action]=widgetAction (depending on routing setup and current widget)

Properties

protected RenderingContextInterface $renderingContext from  AbstractViewHelper
protected ControllerContext $controllerContext

Controller Context to use

from  AbstractViewHelper
protected ObjectManagerInterface $objectManager from  AbstractViewHelper
protected LoggerInterface $logger from  AbstractViewHelper
protected HashService $hashService

Methods

void
setRenderingContext(RenderingContextInterface $renderingContext)

No description

void
injectObjectManager(ObjectManagerInterface $objectManager)

No description

void
injectLogger(LoggerInterface $logger)

Injects the (system) logger based on PSR-3.

void
initializeArguments()

Initialize the arguments.

string
render()

Render the Uri.

string
getAjaxUri()

Get the URI for an AJAX Request.

string
getWidgetUri()

Get the URI for a non-AJAX Request.

Details

void setRenderingContext(RenderingContextInterface $renderingContext)

No description

Parameters

RenderingContextInterface $renderingContext

Return Value

void

void injectObjectManager(ObjectManagerInterface $objectManager)

No description

Parameters

ObjectManagerInterface $objectManager

Return Value

void

void injectLogger(LoggerInterface $logger)

Injects the (system) logger based on PSR-3.

Parameters

LoggerInterface $logger

Return Value

void

bool isEscapingInterceptorEnabled()

No description

Return Value

bool

void initializeArguments()

Initialize the arguments.

Return Value

void

Exceptions

Exception

string render()

Render the Uri.

Return Value

string

The rendered link

Exceptions

Exception
WidgetContextNotFoundException

protected string getAjaxUri()

Get the URI for an AJAX Request.

Return Value

string

the AJAX URI

Exceptions

WidgetContextNotFoundException

protected string getWidgetUri()

Get the URI for a non-AJAX Request.

argumentsToBeExcludedFromQueryString does not work yet, needs to be fixed.

Return Value

string

the Widget URI

Exceptions

Exception