public function ExtraFieldTypePluginBase::__construct in Entity Extra Field 8
Same name and namespace in other branches
- 2.0.x src/ExtraFieldTypePluginBase.php \Drupal\entity_extra_field\ExtraFieldTypePluginBase::__construct()
Extra field type view constructor.
Parameters
array $configuration: The plugin configuration.
$plugin_id: The plugin identifier.
$plugin_definition: The plugin definition.
\Drupal\Core\Utility\Token $token: The token service.
\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler service.
\Drupal\Core\Routing\RouteMatchInterface $current_route_match: The current route match service.
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager service.
\Drupal\Core\Entity\EntityFieldManagerInterface $entity_field_manager:
Overrides PluginBase::__construct
1 call to ExtraFieldTypePluginBase::__construct()
- ExtraFieldBlockPlugin::__construct in src/
Plugin/ ExtraFieldType/ ExtraFieldBlockPlugin.php - Extra field block plugin constructor.
1 method overrides ExtraFieldTypePluginBase::__construct()
- ExtraFieldBlockPlugin::__construct in src/
Plugin/ ExtraFieldType/ ExtraFieldBlockPlugin.php - Extra field block plugin constructor.
File
- src/
ExtraFieldTypePluginBase.php, line 69
Class
- ExtraFieldTypePluginBase
- Define extra field type plugin base.
Namespace
Drupal\entity_extra_fieldCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, Token $token, ModuleHandlerInterface $module_handler, RouteMatchInterface $current_route_match, EntityTypeManagerInterface $entity_type_manager, EntityFieldManagerInterface $entity_field_manager) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->token = $token;
$this->moduleHandler = $module_handler;
$this->currentRouteMatch = $current_route_match;
$this->entityTypeManager = $entity_type_manager;
$this->entityFieldManager = $entity_field_manager;
}