public function WidgetSelectorBase::setDefaultWidget in Entity Browser 8
Same name and namespace in other branches
- 8.2 src/WidgetSelectorBase.php \Drupal\entity_browser\WidgetSelectorBase::setDefaultWidget()
Sets the default widget.
Parameters
string $widget: Id of widget to set as the current widget.
Overrides WidgetSelectorInterface::setDefaultWidget
File
- src/
WidgetSelectorBase.php, line 97
Class
- WidgetSelectorBase
- Base class for widget selector plugins.
Namespace
Drupal\entity_browserCode
public function setDefaultWidget($widget) {
$this->defaultWidget = $widget;
}