You are here

protected function Synonym::getPluginCollection in Synonyms 2.0.x

Same name and namespace in other branches
  1. 8 src/Entity/Synonym.php \Drupal\synonyms\Entity\Synonym::getPluginCollection()

Encapsulates the creation of entity's LazyPluginCollection.

Return value

\Drupal\synonyms\ProviderPluginCollection The entity's plugin collection.

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

File

src/Entity/Synonym.php, line 211

Class

Synonym
Synonym configuration entity.

Namespace

Drupal\synonyms\Entity

Code

protected function getPluginCollection() {
  if (!$this->pluginCollection && $this
    ->getProviderPlugin()) {
    $this->pluginCollection = new ProviderPluginCollection(\Drupal::service('plugin.manager.synonyms_provider'), $this
      ->getProviderPlugin(), $this->provider_configuration);
  }
  return $this->pluginCollection;
}