Property | Type | Description | |
---|---|---|---|
$controllerContext | |||
$options | array | The configuration options of this view | |
$supportedOptions | array | Syntax example: array( 'someOptionName' => array('defaultValue', 'some description', 'string'), 'someOtherOptionName' => array('defaultValue', some description', integer), ... ) | |
$variables | array | View variables and their values |
Method | Description | |
---|---|---|
__construct ( array $options = [] ) | Set default options based on the supportedOptions provided | |
assign ( string $key, mixed $value ) : |
Add a variable to $this->variables. | |
assignMultiple ( array $values ) : |
Add multiple variables to $this->variables. | |
canRender ( |
Tells if the view implementation can render the view for the given context. | |
createWithOptions ( array $options ) : Neos\Flow\Mvc\View\ViewInterface | Factory method to create an instance with given options. | |
getOption ( string $optionName ) : mixed | Get a specific option of this View | |
setControllerContext ( |
Sets the current controller context | |
setOption ( string $optionName, mixed $value ) : void | Set a specific option of this View |
public __construct ( array $options = [] ) | ||
$options | array |
public assignMultiple ( array $values ) : |
||
$values | array | array in the format array(key1 => value1, key2 => value2) |
return | an instance of $this, to enable chaining |
public static createWithOptions ( array $options ) : Neos\Flow\Mvc\View\ViewInterface | ||
$options | array | |
return | Neos\Flow\Mvc\View\ViewInterface |
public setControllerContext ( |
||
$controllerContext | ||
return | void |
protected ControllerContext,Neos\Flow\Mvc\Controller $controllerContext | ||
return |
protected array $options | ||
return | array |
protected array $supportedOptions | ||
return | array |
protected array $variables | ||
return | array |