public function AbstractProvider::getBehaviorServiceInstance in Synonyms 8
Fetch behavior service instance which corresponds to this provider.
Return value
\Drupal\synonyms\SynonymsService\Behavior\SynonymsBehaviorInterface The return value
Overrides SynonymsProviderInterface::getBehaviorServiceInstance
File
- src/
Plugin/ Synonyms/ Provider/ AbstractProvider.php, line 56
Class
- AbstractProvider
- Good starting point for a synonyms provider plugin.
Namespace
Drupal\synonyms\Plugin\Synonyms\ProviderCode
public function getBehaviorServiceInstance() {
return $this->container
->get($this
->getPluginDefinition()['synonyms_behavior_service']);
}