You are here

public function EmbedTypeBase::__construct in Embed 8

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

File

src/EmbedType/EmbedTypeBase.php, line 19

Class

EmbedTypeBase
Defines a base implementation that most embed type plugins will extend.

Namespace

Drupal\embed\EmbedType

Code

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