public function WidgetSelectorInterface::setDefaultWidget in Entity Browser 8
Same name and namespace in other branches
- 8.2 src/WidgetSelectorInterface.php \Drupal\entity_browser\WidgetSelectorInterface::setDefaultWidget()
Sets the default widget.
Parameters
string $widget: Id of widget to set as the current widget.
1 method overrides WidgetSelectorInterface::setDefaultWidget()
- WidgetSelectorBase::setDefaultWidget in src/
WidgetSelectorBase.php - Sets the default widget.
File
- src/
WidgetSelectorInterface.php, line 43
Class
- WidgetSelectorInterface
- Defines the interface for entity browser widget selectors.
Namespace
Drupal\entity_browserCode
public function setDefaultWidget($widget);