You are here

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

Executes the view and returns data in the format required.

The base class cannot be executed.

Overrides DisplayPluginBase::execute

1 call to EntityBrowser::execute()
EntityBrowser::preview in src/Plugin/views/display/EntityBrowser.php
Renders the display for the purposes of a live preview.

File

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

Class

EntityBrowser
The plugin that handles entity browser display.

Namespace

Drupal\entity_browser\Plugin\views\display

Code

public function execute() {
  parent::execute();
  $render = [
    'view' => $this->view
      ->render(),
  ];
  $this
    ->handleForm($render);
  return $render;
}