You are here

public function Synonym::getProviderPluginInstance in Synonyms 2.0.x

Same name and namespace in other branches
  1. 8 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\ProviderInterface\ProviderInterface 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 85

Class

Synonym
Synonym configuration entity.

Namespace

Drupal\synonyms\Entity

Code

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