You are here

public function EmbedBase::__construct in Entity Usage 8

Constructs display 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\entity_usage\EntityUsage $usage_service: The usage tracking service.

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The ModuleHandler service.

\Drupal\Core\Entity\EntityRepositoryInterface $entity_repository: The EntityRepositoryInterface service.

Overrides EntityUsageTrackBase::__construct

File

src/Plugin/EntityUsage/Track/EmbedBase.php, line 48

Class

EmbedBase
Base class for plugins tracking usage in entities embedded in WYSIWYG fields.

Namespace

Drupal\entity_usage\Plugin\EntityUsage\Track

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityUsage $usage_service, ModuleHandlerInterface $module_handler, EntityRepositoryInterface $entity_repository) {
  parent::__construct($configuration, $plugin_id, $plugin_definition, $usage_service);
  $this->moduleHandler = $module_handler;
  $this->entityRepository = $entity_repository;
}