You are here

public function EntityBrowser::ajaxEnabled in Entity Browser 8

Same name and namespace in other branches
  1. 8.2 src/Plugin/views/display/EntityBrowser.php \Drupal\entity_browser\Plugin\views\display\EntityBrowser::ajaxEnabled()

Whether the display is actually using AJAX or not.

Return value

bool

Overrides DisplayPluginBase::ajaxEnabled

File

src/Plugin/views/display/EntityBrowser.php, line 41

Class

EntityBrowser
The plugin that handles entity browser display.

Namespace

Drupal\entity_browser\Plugin\views\display

Code

public function ajaxEnabled() {

  // Force AJAX as this Display Plugin will almost always be embedded inside
  // EntityBrowserForm, which breaks normal exposed form submits.
  return TRUE;
}