You are here

public function RenderTagPlugin::__construct in Extensible BBCode 8.3

Same name and namespace in other branches
  1. 4.0.x src/Plugin/RenderTagPlugin.php \Drupal\xbbcode\Plugin\RenderTagPlugin::__construct()

RenderTagPlugin constructor.

Parameters

array $configuration: Plugin configuration.

string $plugin_id: Plugin ID.

mixed $plugin_definition: Plugin definition.

\Drupal\Core\Render\RendererInterface $renderer: Drupal renderer service.

Overrides TagPluginBase::__construct

File

src/Plugin/RenderTagPlugin.php, line 35

Class

RenderTagPlugin
Base class for plugins that produce a Drupal render array.

Namespace

Drupal\xbbcode\Plugin

Code

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