Template::getVariables()
\nn\t3::Template()->getVariables($view);
Retrieves the variables of the current view, i.e: Everything that was set via assign() and assignMultiple().
In the ViewHelper:
\nn\t3::Template()->getVariables( $renderingContext );
Copied!
In the controller:
\nn\t3::Template()->getVariables( $this->view );
Copied!
| @return array
Source Code
public function getVariables( &$view )
{
$context = $view;
if (method_exists($context, 'getRenderingContext')) {
$context = $view->getRenderingContext();
}
return $context->getVariableProvider()->getSource() ?: [];
}
Copied!