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

setWidgetIdentifier() public method

public setWidgetIdentifier ( string $widgetIdentifier ) : void
$widgetIdentifier string
return void
    public function setWidgetIdentifier($widgetIdentifier)
    {
        $this->widgetIdentifier = $widgetIdentifier;
    }

Usage Example

 /**
  * The widget identifier is unique on the current page, and is used
  * in the URI as a namespace for the widget's arguments.
  *
  * @return string the widget identifier for this widget
  * @return void
  */
 private function initializeWidgetIdentifier()
 {
     $widgetIdentifier = $this->hasArgument('widgetId') ? $this->arguments['widgetId'] : strtolower(str_replace('\\', '-', get_class($this)));
     $this->widgetContext->setWidgetIdentifier($widgetIdentifier);
 }
All Usage Examples Of Neos\FluidAdaptor\Core\Widget\WidgetContext::setWidgetIdentifier