You are here

public function SchemaGroupBase::__construct in Schema.org Metatag 8.2

Same name and namespace in other branches
  1. 8 src/Plugin/metatag/Group/SchemaGroupBase.php \Drupal\schema_metatag\Plugin\metatag\Group\SchemaGroupBase::__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 GroupBase::__construct

File

src/Plugin/metatag/Group/SchemaGroupBase.php, line 22

Class

SchemaGroupBase
Schema.org groups should extend this class.

Namespace

Drupal\schema_metatag\Plugin\metatag\Group

Code

public function __construct(array $configuration, $plugin_id, array $plugin_definition) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->schemaMetatag = $plugin_definition['schema_metatag'];
}