You are here

public function ProfileStatisticBlock::__construct in Open Social 10.3.x

Same name and namespace in other branches
  1. 8.9 modules/social_features/social_profile/src/Plugin/Block/ProfileStatisticBlock.php \Drupal\social_profile\Plugin\Block\ProfileStatisticBlock::__construct()
  2. 8.8 modules/social_features/social_profile/src/Plugin/Block/ProfileStatisticBlock.php \Drupal\social_profile\Plugin\Block\ProfileStatisticBlock::__construct()
  3. 10.0.x modules/social_features/social_profile/src/Plugin/Block/ProfileStatisticBlock.php \Drupal\social_profile\Plugin\Block\ProfileStatisticBlock::__construct()
  4. 10.1.x modules/social_features/social_profile/src/Plugin/Block/ProfileStatisticBlock.php \Drupal\social_profile\Plugin\Block\ProfileStatisticBlock::__construct()
  5. 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\Block

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityTypeManagerInterface $entityTypeManager) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->entityTypeManager = $entityTypeManager;
}