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

setAjaxWidgetIdentifier() public method

public setAjaxWidgetIdentifier ( integer $ajaxWidgetIdentifier ) : void
$ajaxWidgetIdentifier integer
return void
    public function setAjaxWidgetIdentifier($ajaxWidgetIdentifier)
    {
        $this->ajaxWidgetIdentifier = $ajaxWidgetIdentifier;
    }

Usage Example

 /**
  * Stores the WidgetContext inside the Context, and sets the
  * AjaxWidgetIdentifier inside the Widget Context correctly.
  *
  * @param WidgetContext $widgetContext
  * @return void
  * @Flow\Session(autoStart=true)
  */
 public function store(WidgetContext $widgetContext)
 {
     $ajaxWidgetId = $this->nextFreeAjaxWidgetId++;
     $widgetContext->setAjaxWidgetIdentifier($ajaxWidgetId);
     $this->widgetContexts[$ajaxWidgetId] = $widgetContext;
 }
All Usage Examples Of Neos\FluidAdaptor\Core\Widget\WidgetContext::setAjaxWidgetIdentifier