PHP Class FluidTYPO3\Vhs\ViewHelpers\Render\RequestViewHelper

Renders a sub-request to the desired Extension, Plugin, Controller and action with the desired arguments. Note: arguments must not be wrapped with the prefix used in GET/POST parameters but must be provided as if the arguments were sent directly to the Controller action.
Inheritance: extends AbstractRenderViewHelper
Show file Open project: fluidtypo3/vhs

Protected Properties

Property Type Description
$dispatcher TYPO3\CMS\Extbase\Mvc\Dispatcher
$requestType string
$responseType string

Public Methods

Method Description
injectDispatcher ( TYPO3\CMS\Extbase\Mvc\Dispatcher $dispatcher ) : void
render ( string | null $action = null, string | null $controller = null, string | null $extensionName = null, string | null $pluginName = null, string | null $vendorName = null, array $arguments = [] ) : TYPO3\CMS\Extbase\Mvc\ResponseInterface Dispatch Request

Method Details

injectDispatcher() public method

public injectDispatcher ( TYPO3\CMS\Extbase\Mvc\Dispatcher $dispatcher ) : void
$dispatcher TYPO3\CMS\Extbase\Mvc\Dispatcher
return void

render() public method

Dispatches (as a completely new Request) a Request that will execute a configured Plugin->Controller->action() which means that the Plugin, Controller and Action you use must be allowed by the plugin configuration of the target controller.
public render ( string | null $action = null, string | null $controller = null, string | null $extensionName = null, string | null $pluginName = null, string | null $vendorName = null, array $arguments = [] ) : TYPO3\CMS\Extbase\Mvc\ResponseInterface
$action string | null
$controller string | null
$extensionName string | null
$pluginName string | null
$vendorName string | null
$arguments array
return TYPO3\CMS\Extbase\Mvc\ResponseInterface

Property Details

$dispatcher protected property

protected Dispatcher,TYPO3\CMS\Extbase\Mvc $dispatcher
return TYPO3\CMS\Extbase\Mvc\Dispatcher

$requestType protected property

protected string $requestType
return string

$responseType protected property

protected string $responseType
return string