You are here

public function TagPluginBase::__construct in Extensible BBCode 8.3

Same name and namespace in other branches
  1. 4.0.x src/Plugin/TagPluginBase.php \Drupal\xbbcode\Plugin\TagPluginBase::__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 TagPluginBase::__construct()
NullTagPlugin::__construct in src/Plugin/XBBCode/NullTagPlugin.php
Constructs a \Drupal\Component\Plugin\PluginBase object.
RenderTagPlugin::__construct in src/Plugin/RenderTagPlugin.php
RenderTagPlugin constructor.
TemplateTagPlugin::__construct in src/Plugin/TemplateTagPlugin.php
TemplateTagPlugin constructor.
3 methods override TagPluginBase::__construct()
NullTagPlugin::__construct in src/Plugin/XBBCode/NullTagPlugin.php
Constructs a \Drupal\Component\Plugin\PluginBase object.
RenderTagPlugin::__construct in src/Plugin/RenderTagPlugin.php
RenderTagPlugin constructor.
TemplateTagPlugin::__construct in src/Plugin/TemplateTagPlugin.php
TemplateTagPlugin constructor.

File

src/Plugin/TagPluginBase.php, line 50

Class

TagPluginBase
Provides a base class for XBBCode tag plugins.

Namespace

Drupal\xbbcode\Plugin

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->name = $this->pluginDefinition['name'];
  $this->settings = $this->pluginDefinition['settings'];
  $this
    ->setConfiguration($configuration);
}