You are here

public function ExtraFieldBlockPlugin::__construct in Entity Extra Field 8

Same name and namespace in other branches
  1. 2.0.x src/Plugin/ExtraFieldType/ExtraFieldBlockPlugin.php \Drupal\entity_extra_field\Plugin\ExtraFieldType\ExtraFieldBlockPlugin::__construct()

Extra field block plugin 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: The entity field manager service.

\Drupal\Core\Block\BlockManagerInterface $block_manager: The block manager service.

\Drupal\Core\Plugin\Context\ContextHandlerInterface $context_handler: The context handler service.

\Drupal\Core\Plugin\Context\ContextRepositoryInterface $context_repository: The context repository service.

Overrides ExtraFieldTypePluginBase::__construct

File

src/Plugin/ExtraFieldType/ExtraFieldBlockPlugin.php, line 76

Class

ExtraFieldBlockPlugin
Define extra field block type.

Namespace

Drupal\entity_extra_field\Plugin\ExtraFieldType

Code

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, BlockManagerInterface $block_manager, ContextHandlerInterface $context_handler, ContextRepositoryInterface $context_repository) {
  parent::__construct($configuration, $plugin_id, $plugin_definition, $token, $module_handler, $current_route_match, $entity_type_manager, $entity_field_manager);
  $this->blockManager = $block_manager;
  $this->contextHandler = $context_handler;
  $this->contextRepository = $context_repository;
}