public function ProfileStatisticBlock::__construct in Open Social 10.0.x
Same name and namespace in other branches
- 8.9 modules/social_features/social_profile/src/Plugin/Block/ProfileStatisticBlock.php \Drupal\social_profile\Plugin\Block\ProfileStatisticBlock::__construct()
- 8.8 modules/social_features/social_profile/src/Plugin/Block/ProfileStatisticBlock.php \Drupal\social_profile\Plugin\Block\ProfileStatisticBlock::__construct()
- 10.3.x modules/social_features/social_profile/src/Plugin/Block/ProfileStatisticBlock.php \Drupal\social_profile\Plugin\Block\ProfileStatisticBlock::__construct()
- 10.1.x modules/social_features/social_profile/src/Plugin/Block/ProfileStatisticBlock.php \Drupal\social_profile\Plugin\Block\ProfileStatisticBlock::__construct()
- 10.2.x modules/social_features/social_profile/src/Plugin/Block/ProfileStatisticBlock.php \Drupal\social_profile\Plugin\Block\ProfileStatisticBlock::__construct()
ProfileStatisticBlock constructor.
Parameters
array $configuration: The given configuration.
string $plugin_id: The given plugin id.
mixed $plugin_definition: The given plugin definition.
\Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager: The entity type manager.
Overrides BlockPluginTrait::__construct
File
- modules/
social_features/ social_profile/ src/ Plugin/ Block/ ProfileStatisticBlock.php, line 45
Class
- ProfileStatisticBlock
- Provides a 'ProfileStatisticBlock' block.
Namespace
Drupal\social_profile\Plugin\BlockCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityTypeManagerInterface $entityTypeManager) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->entityTypeManager = $entityTypeManager;
}