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

public setWidgetIdentifier ( string $widgetIdentifier ) : void
$widgetIdentifier string
Результат void
 /**
  * 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);
 }
 /**
  * @test
  */
 public function widgetIdentifierCanBeReadAgain()
 {
     $this->widgetContext->setWidgetIdentifier('myWidgetIdentifier');
     $this->assertEquals('myWidgetIdentifier', $this->widgetContext->getWidgetIdentifier());
 }