You are here

public function Synonym::getProviderConfiguration in Synonyms 2.0.x

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

Get synonyms provider plugin configuration from this entity.

Return value

array Array of synonyms provider plugin configuration

Overrides SynonymInterface::getProviderConfiguration

File

src/Entity/Synonym.php, line 106

Class

Synonym
Synonym configuration entity.

Namespace

Drupal\synonyms\Entity

Code

public function getProviderConfiguration() {
  $plugin = $this
    ->getProviderPluginInstance();
  if ($plugin instanceof ConfigurableInterface) {
    return $plugin
      ->getConfiguration();
  }
  return $this->provider_configuration;
}