You are here

public function Synonym::getProviderConfiguration in Synonyms 8

Same name and namespace in other branches
  1. 2.0.x 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 123

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;
}