Neos\FluidAdaptor\Core\Widget\WidgetContext::setAjaxWidgetConfiguration PHP Method

setAjaxWidgetConfiguration() public method

public setAjaxWidgetConfiguration ( array $ajaxWidgetConfiguration ) : void
$ajaxWidgetConfiguration array
return void
    public function setAjaxWidgetConfiguration(array $ajaxWidgetConfiguration)
    {
        $this->ajaxWidgetConfiguration = $ajaxWidgetConfiguration;
    }

Usage Example

 /**
  * @test
  */
 public function aWidgetConfigurationIsReturnedWhenContextIsSerialized()
 {
     $this->widgetContext->setNonAjaxWidgetConfiguration(array('key' => 'value'));
     $this->widgetContext->setAjaxWidgetConfiguration(array('keyAjax' => 'valueAjax'));
     $this->widgetContext = serialize($this->widgetContext);
     $this->widgetContext = unserialize($this->widgetContext);
     $this->assertEquals(array('keyAjax' => 'valueAjax'), $this->widgetContext->getWidgetConfiguration());
 }
All Usage Examples Of Neos\FluidAdaptor\Core\Widget\WidgetContext::setAjaxWidgetConfiguration