You are here

public function SocialPageTitleBlock::__construct in Open Social 8.8

Same name and namespace in other branches
  1. 8.9 modules/social_features/social_core/src/Plugin/Block/SocialPageTitleBlock.php \Drupal\social_core\Plugin\Block\SocialPageTitleBlock::__construct()
  2. 8.2 modules/social_features/social_core/src/Plugin/Block/SocialPageTitleBlock.php \Drupal\social_core\Plugin\Block\SocialPageTitleBlock::__construct()
  3. 8.3 modules/social_features/social_core/src/Plugin/Block/SocialPageTitleBlock.php \Drupal\social_core\Plugin\Block\SocialPageTitleBlock::__construct()
  4. 8.4 modules/social_features/social_core/src/Plugin/Block/SocialPageTitleBlock.php \Drupal\social_core\Plugin\Block\SocialPageTitleBlock::__construct()
  5. 8.5 modules/social_features/social_core/src/Plugin/Block/SocialPageTitleBlock.php \Drupal\social_core\Plugin\Block\SocialPageTitleBlock::__construct()
  6. 8.6 modules/social_features/social_core/src/Plugin/Block/SocialPageTitleBlock.php \Drupal\social_core\Plugin\Block\SocialPageTitleBlock::__construct()
  7. 8.7 modules/social_features/social_core/src/Plugin/Block/SocialPageTitleBlock.php \Drupal\social_core\Plugin\Block\SocialPageTitleBlock::__construct()
  8. 10.3.x modules/social_features/social_core/src/Plugin/Block/SocialPageTitleBlock.php \Drupal\social_core\Plugin\Block\SocialPageTitleBlock::__construct()
  9. 10.0.x modules/social_features/social_core/src/Plugin/Block/SocialPageTitleBlock.php \Drupal\social_core\Plugin\Block\SocialPageTitleBlock::__construct()
  10. 10.1.x modules/social_features/social_core/src/Plugin/Block/SocialPageTitleBlock.php \Drupal\social_core\Plugin\Block\SocialPageTitleBlock::__construct()
  11. 10.2.x modules/social_features/social_core/src/Plugin/Block/SocialPageTitleBlock.php \Drupal\social_core\Plugin\Block\SocialPageTitleBlock::__construct()

EventAddBlock 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.

Overrides BlockPluginTrait::__construct

File

modules/social_features/social_core/src/Plugin/Block/SocialPageTitleBlock.php, line 84

Class

SocialPageTitleBlock
Provides a 'SocialPageTitleBlock' block.

Namespace

Drupal\social_core\Plugin\Block

Code

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) {
  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;
}