You are here

public function EntityBrowser::getOption 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::getOption()

Gets an option, from this display or the default display.

Overrides DisplayPluginBase::getOption

File

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

Class

EntityBrowser
The plugin that handles entity browser display.

Namespace

Drupal\entity_browser\Plugin\views\display

Code

public function getOption($option) {

  // @todo remove upon resolution of https://www.drupal.org/node/2904798
  // This overrides getOption() instead of ajaxEnabled() because
  // \Drupal\views\Controller\ViewAjaxController::ajaxView() currently calls
  // that directly.
  if ($option == 'use_ajax') {
    return TRUE;
  }
  else {
    return parent::getOption($option);
  }
}