public function EntityUsageTrackBase::__construct in Entity Usage 8
Same name and namespace in other branches
- 8.2 src/EntityUsageTrackBase.php \Drupal\entity_usage\EntityUsageTrackBase::__construct()
- 8.3 src/EntityUsageTrackBase.php \Drupal\entity_usage\EntityUsageTrackBase::__construct()
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.
Overrides PluginBase::__construct
3 calls to EntityUsageTrackBase::__construct()
- EmbedBase::__construct in src/
Plugin/ EntityUsage/ Track/ EmbedBase.php - Constructs display plugin.
- EntityReference::__construct in src/
Plugin/ EntityUsage/ Track/ EntityReference.php - Constructs display plugin.
- Link::__construct in src/
Plugin/ EntityUsage/ Track/ Link.php - Constructs display plugin.
3 methods override EntityUsageTrackBase::__construct()
- EmbedBase::__construct in src/
Plugin/ EntityUsage/ Track/ EmbedBase.php - Constructs display plugin.
- EntityReference::__construct in src/
Plugin/ EntityUsage/ Track/ EntityReference.php - Constructs display plugin.
- Link::__construct in src/
Plugin/ EntityUsage/ Track/ Link.php - Constructs display plugin.
File
- src/
EntityUsageTrackBase.php, line 34
Class
- EntityUsageTrackBase
- Base implementation for track plugins.
Namespace
Drupal\entity_usageCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityUsage $usage_service) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->configuration += $this
->defaultConfiguration();
$this->usageService = $usage_service;
}