You are here

public function EntityBrowser::getPluginCollections in Entity Browser 8

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

Returns the plugin collections used by this entity.

Return value

\Drupal\Component\Plugin\LazyPluginCollection[] An array of plugin collections, keyed by the property name they use to store their configuration.

Overrides ObjectWithPluginCollectionInterface::getPluginCollections

File

src/Entity/EntityBrowser.php, line 256

Class

EntityBrowser
Defines an entity browser configuration entity.

Namespace

Drupal\entity_browser\Entity

Code

public function getPluginCollections() {
  return [
    'widgets' => $this
      ->getWidgets(),
    'widget_selector_configuration' => $this
      ->widgetSelectorPluginCollection(),
    'display_configuration' => $this
      ->displayPluginCollection(),
    'selection_display_configuration' => $this
      ->selectionDisplayPluginCollection(),
  ];
}