Neos\Flow\Mvc\View\ViewInterface::assignMultiple PHP Method

assignMultiple() public method

Add multiple variables to the view data collection
public assignMultiple ( array $values ) : Neos\Flow\Mvc\View\ViewInterface
$values array array in the format array(key1 => value1, key2 => value2)
return Neos\Flow\Mvc\View\ViewInterface an instance of $this, to enable chaining
    public function assignMultiple(array $values);

Usage Example

 /**
  * Initialize and render the fallback view
  *
  * @return string
  */
 public function renderFallbackView()
 {
     $this->fallbackView->setControllerContext($this->controllerContext);
     $this->fallbackView->assignMultiple($this->variables);
     return $this->fallbackView->render();
 }
All Usage Examples Of Neos\Flow\Mvc\View\ViewInterface::assignMultiple