public function SvgEmbed::__construct in SVG Embed 8
Same name and namespace in other branches
- 2.0.x src/Plugin/Filter/SvgEmbed.php \Drupal\svg_embed\Plugin\Filter\SvgEmbed::__construct()
Constructs a \Drupal\svg_embed\Plugin\Filter\SvgEmbed 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.
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager:
\Drupal\svg_embed\SvgEmbedProcessInterface $svg_embed_process:
Overrides FilterBase::__construct
File
- src/
Plugin/ Filter/ SvgEmbed.php, line 52
Class
- SvgEmbed
- Provides a filter to embed and translate SVG images.
Namespace
Drupal\svg_embed\Plugin\FilterCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityTypeManagerInterface $entity_type_manager, SvgEmbedProcessInterface $svg_embed_process) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->entityTypeManager = $entity_type_manager;
$this->svgEmbedProcess = $svg_embed_process;
}