public function BlockGroup::__construct in Block Group 8
Constructs a new BlockContentBlock.
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\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
\Drupal\Core\Theme\ThemeManagerInterface $theme_manager: The theme manager.
\Drupal\Core\Render\RendererInterface $renderer: The renderer service.
\Drupal\Core\Plugin\Context\ContextRepositoryInterface $context_repository: The context repository.
\Drupal\Core\Plugin\Context\ContextHandlerInterface $context_handler: The context handler.
\Drupal\Core\Controller\TitleResolverInterface $title_resolver: The title resolver.
\Drupal\Core\Routing\RouteMatchInterface $route_match: The current route match.
\Symfony\Component\HttpFoundation\Request $request: The current request.
Overrides BlockPluginTrait::__construct
File
- src/
Plugin/ Block/ BlockGroup.php, line 127
Class
- BlockGroup
- Provides a 'BlockGroup' block.
Namespace
Drupal\blockgroup\Plugin\BlockCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityTypeManagerInterface $entity_type_manager, ThemeManagerInterface $theme_manager, RendererInterface $renderer, ContextRepositoryInterface $context_repository, ContextHandlerInterface $context_handler, TitleResolverInterface $title_resolver, RouteMatchInterface $route_match, Request $request) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->entityTypeManager = $entity_type_manager;
$this->themeManager = $theme_manager;
$this->renderer = $renderer;
$this->contextRepository = $context_repository;
$this->contextHandler = $context_handler;
$this->titleResolver = $title_resolver;
$this->routeMatch = $route_match;
$this->request = $request;
}