You are here

public function Synonym::getProviderPluginInstance in Synonyms 8

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

Get instance of the synonyms provider plugin that is set up in this entity.

Return value

\Drupal\synonyms\SynonymsProviderInterface\SynonymsProviderInterface Initiated synonyms provider instance that corresponds to this configuration entity

Overrides SynonymInterface::getProviderPluginInstance

2 calls to Synonym::getProviderPluginInstance()
Synonym::getProviderConfiguration in src/Entity/Synonym.php
Get synonyms provider plugin configuration from this entity.
Synonym::setProviderConfiguration in src/Entity/Synonym.php
Set synonyms provider plugin configuration for this entity.

File

src/Entity/Synonym.php, line 102

Class

Synonym
Synonym configuration entity.

Namespace

Drupal\synonyms\Entity

Code

public function getProviderPluginInstance() {
  return $this
    ->getPluginCollection()
    ->get($this
    ->getProviderPlugin());
}