public function SocialPageTitleBlock::__construct in Open Social 10.1.x
Same name and namespace in other branches
- 8.9 modules/social_features/social_core/src/Plugin/Block/SocialPageTitleBlock.php \Drupal\social_core\Plugin\Block\SocialPageTitleBlock::__construct()
- 8.2 modules/social_features/social_core/src/Plugin/Block/SocialPageTitleBlock.php \Drupal\social_core\Plugin\Block\SocialPageTitleBlock::__construct()
- 8.3 modules/social_features/social_core/src/Plugin/Block/SocialPageTitleBlock.php \Drupal\social_core\Plugin\Block\SocialPageTitleBlock::__construct()
- 8.4 modules/social_features/social_core/src/Plugin/Block/SocialPageTitleBlock.php \Drupal\social_core\Plugin\Block\SocialPageTitleBlock::__construct()
- 8.5 modules/social_features/social_core/src/Plugin/Block/SocialPageTitleBlock.php \Drupal\social_core\Plugin\Block\SocialPageTitleBlock::__construct()
- 8.6 modules/social_features/social_core/src/Plugin/Block/SocialPageTitleBlock.php \Drupal\social_core\Plugin\Block\SocialPageTitleBlock::__construct()
- 8.7 modules/social_features/social_core/src/Plugin/Block/SocialPageTitleBlock.php \Drupal\social_core\Plugin\Block\SocialPageTitleBlock::__construct()
- 8.8 modules/social_features/social_core/src/Plugin/Block/SocialPageTitleBlock.php \Drupal\social_core\Plugin\Block\SocialPageTitleBlock::__construct()
- 10.3.x modules/social_features/social_core/src/Plugin/Block/SocialPageTitleBlock.php \Drupal\social_core\Plugin\Block\SocialPageTitleBlock::__construct()
- 10.0.x modules/social_features/social_core/src/Plugin/Block/SocialPageTitleBlock.php \Drupal\social_core\Plugin\Block\SocialPageTitleBlock::__construct()
- 10.2.x modules/social_features/social_core/src/Plugin/Block/SocialPageTitleBlock.php \Drupal\social_core\Plugin\Block\SocialPageTitleBlock::__construct()
SocialPageTitleBlock constructor.
Parameters
array $configuration: The given configuration.
string $plugin_id: The given plugin id.
mixed $plugin_definition: The given plugin definition.
\Drupal\Core\Routing\RouteMatchInterface $route_match: The route match.
\Symfony\Component\HttpFoundation\RequestStack $request_stack: The current request stack.
\Drupal\Core\Entity\EntityRepositoryInterface $entity_repository: The entity repository.
\Drupal\Core\Controller\TitleResolverInterface $title_resolver: The title resolver.
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.
Overrides BlockPluginTrait::__construct
File
- modules/
social_features/ social_core/ src/ Plugin/ Block/ SocialPageTitleBlock.php, line 93
Class
- SocialPageTitleBlock
- Provides a 'SocialPageTitleBlock' block.
Namespace
Drupal\social_core\Plugin\BlockCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, RouteMatchInterface $route_match, RequestStack $request_stack, EntityRepositoryInterface $entity_repository, TitleResolverInterface $title_resolver, EntityTypeManagerInterface $entity_type_manager, ModuleHandlerInterface $module_handler) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->routeMatch = $route_match;
$this->requestStack = $request_stack;
$this->entityRepository = $entity_repository;
$this->titleResolver = $title_resolver;
$this->entityTypeManager = $entity_type_manager;
$this->moduleHandler = $module_handler;
}