You are here

public function WidgetBase::requiresJsCommands in Entity Browser 8

Same name and namespace in other branches
  1. 8.2 src/WidgetBase.php \Drupal\entity_browser\WidgetBase::requiresJsCommands()

Returns if widget requires JS commands support by selection display.

Return value

bool True is auto selection is enabled and add/remove of entities will be done over javascript events on selection display.

Overrides WidgetInterface::requiresJsCommands

File

src/WidgetBase.php, line 354

Class

WidgetBase
Base class for widget plugins.

Namespace

Drupal\entity_browser

Code

public function requiresJsCommands() {
  return $this
    ->getPluginDefinition()['auto_select'] && $this
    ->getConfiguration()['settings']['auto_select'];
}