public function Link::__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\Entity\EntityFieldManagerInterface $entity_field_manager: The EntityFieldManager service.
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The EntityTypeManager service.
Overrides EntityUsageTrackBase::__construct
File
- src/
Plugin/ EntityUsage/ Track/ Link.php, line 55
Class
- Link
- Tracks usage of entities related in entity_reference fields.
Namespace
Drupal\entity_usage\Plugin\EntityUsage\TrackCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityUsage $usage_service, EntityFieldManagerInterface $entity_field_manager, EntityTypeManagerInterface $entity_type_manager) {
parent::__construct($configuration, $plugin_id, $plugin_definition, $usage_service);
$this->entityFieldManager = $entity_field_manager;
$this->entityTypeManager = $entity_type_manager;
}