Neos\FluidAdaptor\Core\Widget\WidgetContext::getWidgetConfiguration PHP Метод

getWidgetConfiguration() публичный Метод

public getWidgetConfiguration ( ) : array
Результат array
    public function getWidgetConfiguration()
    {
        if ($this->nonAjaxWidgetConfiguration !== null) {
            return $this->nonAjaxWidgetConfiguration;
        } else {
            return $this->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());
 }