ActionPluginCollection example


  protected $pluginCollection;

  /** * Encapsulates the creation of the action's LazyPluginCollection. * * @return \Drupal\Component\Plugin\LazyPluginCollection * The action's plugin collection. */
  protected function getPluginCollection() {
    if (!$this->pluginCollection) {
      $this->pluginCollection = new ActionPluginCollection(\Drupal::service('plugin.manager.action')$this->plugin, $this->configuration);
    }
    return $this->pluginCollection;
  }

  /** * {@inheritdoc} */
  public function getPluginCollections() {
    return ['configuration' => $this->getPluginCollection()];
  }

  
Home | Imprint | This part of the site doesn't use cookies.