You are here

protected function Action::getPluginCollection in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/modules/system/src/Entity/Action.php \Drupal\system\Entity\Action::getPluginCollection()

Encapsulates the creation of the action's LazyPluginCollection.

Return value

\Drupal\Component\Plugin\LazyPluginCollection The action's plugin collection.

1 call to Action::getPluginCollection()
Action::getPluginCollections in core/modules/system/src/Entity/Action.php
Gets the plugin collections used by this entity.

File

core/modules/system/src/Entity/Action.php, line 87
Contains \Drupal\system\Entity\Action.

Class

Action
Defines the configured action entity.

Namespace

Drupal\system\Entity

Code

protected function getPluginCollection() {
  if (!$this->pluginCollection) {
    $this->pluginCollection = new ActionPluginCollection(\Drupal::service('plugin.manager.action'), $this->plugin, $this->configuration);
  }
  return $this->pluginCollection;
}