You are here

public function WidgetSelectorInterface::setDefaultWidget in Entity Browser 8

Same name and namespace in other branches
  1. 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_browser

Code

public function setDefaultWidget($widget);