You are here

public function EntityBrowser::setSelectionDisplay in Entity Browser 8

Same name and namespace in other branches
  1. 8.2 src/Entity/EntityBrowser.php \Drupal\entity_browser\Entity\EntityBrowser::setSelectionDisplay()

Sets the id of the selection display plugin.

Parameters

string $display: The id of the selection display plugin.

Return value

\Drupal\entity_browser\EntityBrowserInterface The class instance this method is called on.

Overrides EntityBrowserInterface::setSelectionDisplay

File

src/Entity/EntityBrowser.php, line 227

Class

EntityBrowser
Defines an entity browser configuration entity.

Namespace

Drupal\entity_browser\Entity

Code

public function setSelectionDisplay($selection_display) {
  $this->selection_display = $selection_display;
  $this->selectionDisplayCollection = NULL;
  $this->selection_display_configuration = [];
  $this
    ->getSelectionDisplay();
  return $this;
}