You are here

public function AbstractProvider::__construct in Synonyms 8

Same name and namespace in other branches
  1. 2.0.x src/Plugin/Synonyms/Provider/AbstractProvider.php \Drupal\synonyms\Plugin\Synonyms\Provider\AbstractProvider::__construct()

Constructs a \Drupal\Component\Plugin\PluginBase object.

Parameters

array $configuration: A configuration array containing information about the plugin instance.

string $plugin_id: The plugin_id for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

Overrides PluginBase::__construct

3 calls to AbstractProvider::__construct()
BaseField::__construct in src/Plugin/Synonyms/Provider/BaseField.php
BaseField constructor.
EntityReferenceField::__construct in src/Plugin/Synonyms/Provider/EntityReferenceField.php
Constructs a \Drupal\Component\Plugin\PluginBase object.
Field::__construct in src/Plugin/Synonyms/Provider/Field.php
Constructs a \Drupal\Component\Plugin\PluginBase object.
3 methods override AbstractProvider::__construct()
BaseField::__construct in src/Plugin/Synonyms/Provider/BaseField.php
BaseField constructor.
EntityReferenceField::__construct in src/Plugin/Synonyms/Provider/EntityReferenceField.php
Constructs a \Drupal\Component\Plugin\PluginBase object.
Field::__construct in src/Plugin/Synonyms/Provider/Field.php
Constructs a \Drupal\Component\Plugin\PluginBase object.

File

src/Plugin/Synonyms/Provider/AbstractProvider.php, line 28

Class

AbstractProvider
Good starting point for a synonyms provider plugin.

Namespace

Drupal\synonyms\Plugin\Synonyms\Provider

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, ContainerInterface $container) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->container = $container;
}