public function GroupStatisticBlock::__construct in Open Social 10.3.x
Same name and namespace in other branches
- 8.9 modules/social_features/social_group/src/Plugin/Block/GroupStatisticBlock.php \Drupal\social_group\Plugin\Block\GroupStatisticBlock::__construct()
- 8.8 modules/social_features/social_group/src/Plugin/Block/GroupStatisticBlock.php \Drupal\social_group\Plugin\Block\GroupStatisticBlock::__construct()
- 10.0.x modules/social_features/social_group/src/Plugin/Block/GroupStatisticBlock.php \Drupal\social_group\Plugin\Block\GroupStatisticBlock::__construct()
- 10.1.x modules/social_features/social_group/src/Plugin/Block/GroupStatisticBlock.php \Drupal\social_group\Plugin\Block\GroupStatisticBlock::__construct()
- 10.2.x modules/social_features/social_group/src/Plugin/Block/GroupStatisticBlock.php \Drupal\social_group\Plugin\Block\GroupStatisticBlock::__construct()
Creates a GroupHeroBlock instance.
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\Routing\RouteMatchInterface $route_match: The route match.
\Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager: The entity type manager.
Overrides BlockPluginTrait::__construct
File
- modules/
social_features/ social_group/ src/ Plugin/ Block/ GroupStatisticBlock.php, line 56
Class
- GroupStatisticBlock
- Provides a 'GroupStatisticBlock' block.
Namespace
Drupal\social_group\Plugin\BlockCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, RouteMatchInterface $route_match, EntityTypeManagerInterface $entityTypeManager) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->routeMatch = $route_match;
$this->entityTypeManager = $entityTypeManager;
}