public function EntityTagPlugin::__construct in Extensible BBCode 8.3
Same name and namespace in other branches
- 4.0.x 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.
\Drupal\Core\Template\TwigEnvironment $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\XBBCodeCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, TwigEnvironment $twig, EntityStorageInterface $storage) {
parent::__construct($configuration, $plugin_id, $plugin_definition, $twig);
$this->storage = $storage;
}