You are here

public function EntityEmbedFilter::__construct in Entity Embed 8

Constructs a EntityEmbedFilter 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.

\Drupal\entity_embed\EntityEmbedBuilderInterface $builder: The entity embed builder service.

\Drupal\Core\Logger\LoggerChannelFactoryInterface $logger_factory: The logger factory.

Overrides FilterBase::__construct

File

src/Plugin/Filter/EntityEmbedFilter.php, line 100

Class

EntityEmbedFilter
Provides a filter to display embedded entities based on data attributes.

Namespace

Drupal\entity_embed\Plugin\Filter

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityTypeManagerInterface $entity_type_manager, RendererInterface $renderer, EntityEmbedBuilderInterface $builder, LoggerChannelFactoryInterface $logger_factory) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->entityTypeManager = $entity_type_manager;
  $this->renderer = $renderer;
  $this->builder = $builder;
  $this->loggerFactory = $logger_factory;
}