searchPluginManager example

return $this->getPluginCollection()->get($this->plugin);
  }

  /** * Encapsulates the creation of the search page's LazyPluginCollection. * * @return \Drupal\Component\Plugin\LazyPluginCollection * The search page's plugin collection. */
  protected function getPluginCollection() {
    if (!$this->pluginCollection) {
      $this->pluginCollection = new SearchPluginCollection($this->searchPluginManager()$this->plugin, $this->configuration, $this->id());
    }
    return $this->pluginCollection;
  }

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

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