public function WidgetBase::setLabel in Entity Browser 8
Same name and namespace in other branches
- 8.2 src/WidgetBase.php \Drupal\entity_browser\WidgetBase::setLabel()
Sets the widget's label.
Parameters
string $label: New plugin label.
Return value
\Drupal\entity_browser\WidgetInterface This object.
Overrides WidgetInterface::setLabel
File
- src/
WidgetBase.php, line 252
Class
- WidgetBase
- Base class for widget plugins.
Namespace
Drupal\entity_browserCode
public function setLabel($label) {
$this->label = $label;
return $this;
}