Method | Description | |
---|---|---|
addParameters ( array $parameters ) | Adds a hash of parameters to the existing parameters. | |
getConfigHash ( ) : array | null | Returns the config hash. | |
getControllerReference ( ) : Symfony\Component\HttpKernel\Controller\ControllerReference | ||
getParameter ( string $parameterName ) : mixed | Returns parameter value by $parameterName. | |
getParameters ( ) : array | Returns registered parameters. | |
getResponse ( ) : |
Returns the pre-configured Response. | |
getTemplateIdentifier ( ) : string | Closure | Returns the registered template identifier. | |
getViewType ( ) | ||
hasParameter ( string $parameterName ) : boolean | Checks if $parameterName exists. | |
setConfigHash ( array $config ) | Injects the config hash that was used to match and generate the current view. | |
setControllerReference ( Symfony\Component\HttpKernel\Controller\ControllerReference $controllerReference ) | ||
setParameters ( array $parameters ) | Sets $parameters that will later be injected to the template/closure. | |
setResponse ( |
Sets a pre-configured Response that will be used to render the View. | |
setTemplateIdentifier ( string | Closure $templateIdentifier ) | Sets $templateIdentifier to the content view. | |
setViewType ( $viewType ) |
public addParameters ( array $parameters ) | ||
$parameters | array |
public getConfigHash ( ) : array | null | ||
return | array | null |
public getControllerReference ( ) : Symfony\Component\HttpKernel\Controller\ControllerReference | ||
return | Symfony\Component\HttpKernel\Controller\ControllerReference |
public getParameter ( string $parameterName ) : mixed | ||
$parameterName | string | |
return | mixed |
public getParameters ( ) : array | ||
return | array |
public getResponse ( ) : |
||
return |
public getTemplateIdentifier ( ) : string | Closure | ||
return | string | Closure |
public hasParameter ( string $parameterName ) : boolean | ||
$parameterName | string | |
return | boolean |
public setConfigHash ( array $config ) | ||
$config | array |
public setControllerReference ( Symfony\Component\HttpKernel\Controller\ControllerReference $controllerReference ) | ||
$controllerReference | Symfony\Component\HttpKernel\Controller\ControllerReference |
public setParameters ( array $parameters ) | ||
$parameters | array | Hash of parameters |
public setResponse ( |
||
$response |
function (array $params = [])
{
Do something to render
Must return a string to display
}
Must throw a \eZ\Publish\Core\Base\Exceptions\InvalidArgumentType exception if $templateIdentifier is invalid. public setTemplateIdentifier ( string | Closure $templateIdentifier ) | ||
$templateIdentifier | string | Closure |