protected function Synonym::getPluginCollection in Synonyms 8
Same name and namespace in other branches
- 2.0.x src/Entity/Synonym.php \Drupal\synonyms\Entity\Synonym::getPluginCollection()
Encapsulates the creation of entity's LazyPluginCollection.
Return value
\Drupal\synonyms\SynonymProviderPluginCollection 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 231
Class
- Synonym
- Synonym configuration entity.
Namespace
Drupal\synonyms\EntityCode
protected function getPluginCollection() {
if (!$this->pluginCollection && $this
->getProviderPlugin()) {
$this->pluginCollection = new SynonymProviderPluginCollection(\Drupal::service('plugin.manager.synonyms_provider'), $this
->getProviderPlugin(), $this->provider_configuration);
}
return $this->pluginCollection;
}