public function EntityEmbedByID::__construct in Embed 8
Constructs a EntityEmbedByID 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: The entity type manager.
\Drupal\Core\Render\RendererInterface $renderer: The renderer.
Overrides FilterBase::__construct
File
- tests/
embed_test/ src/ Plugin/ Filter/ EntityEmbedByID.php, line 54
Class
- EntityEmbedByID
- Renders a full node view from an embed code like node:NID.
Namespace
Drupal\embed_test\Plugin\FilterCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityTypeManagerInterface $entity_type_manager, RendererInterface $renderer) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->entityTypeManager = $entity_type_manager;
$this->renderer = $renderer;
}