You are here

public function EntityTagPlugin::__construct in Extensible BBCode 4.0.x

Same name and namespace in other branches
  1. 8.3 src/Plugin/XBBCode/EntityTagPlugin.php \Drupal\xbbcode\Plugin\XBBCode\EntityTagPlugin::__construct()

Constructs a new custom tag plugin.

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.

\Twig\Environment $twig: The twig template loader.

\Drupal\Core\Entity\EntityStorageInterface $storage: The tag storage.

Overrides TemplateTagPlugin::__construct

File

src/Plugin/XBBCode/EntityTagPlugin.php, line 65

Class

EntityTagPlugin
A tag plugin based on a custom tag entity.

Namespace

Drupal\xbbcode\Plugin\XBBCode

Code

public function __construct(array $configuration, string $plugin_id, $plugin_definition, TwigEnvironment $twig, EntityStorageInterface $storage) {
  parent::__construct($configuration, $plugin_id, $plugin_definition, $twig);
  $this->storage = $storage;
}