public function ExtraFieldTypePluginBase::__construct in Entity Extra Field 2.0.x
Same name and namespace in other branches
- 8 src/ExtraFieldTypePluginBase.php \Drupal\entity_extra_field\ExtraFieldTypePluginBase::__construct()
Extra field type view constructor.
Parameters
array $configuration: The plugin configuration.
string $plugin_id: The plugin identifier.
array $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
2 calls to ExtraFieldTypePluginBase::__construct()
- ExtraFieldBlockPlugin::__construct in src/
Plugin/ ExtraFieldType/ ExtraFieldBlockPlugin.php - Extra field block plugin constructor.
- ExtraFieldEntityLinkPlugin::__construct in src/
Plugin/ ExtraFieldType/ ExtraFieldEntityLinkPlugin.php - Extra field type view constructor.
2 methods override ExtraFieldTypePluginBase::__construct()
- ExtraFieldBlockPlugin::__construct in src/
Plugin/ ExtraFieldType/ ExtraFieldBlockPlugin.php - Extra field block plugin constructor.
- ExtraFieldEntityLinkPlugin::__construct in src/
Plugin/ ExtraFieldType/ ExtraFieldEntityLinkPlugin.php - Extra field type view constructor.
File
- src/
ExtraFieldTypePluginBase.php, line 71
Class
- ExtraFieldTypePluginBase
- Define extra field type plugin base.
Namespace
Drupal\entity_extra_fieldCode
public function __construct(array $configuration, string $plugin_id, array $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;
}