You are here

public function AccountHeaderBlock::__construct in Open Social 8.5

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

AccountHeaderBlock constructor.

Parameters

array $configuration: The configuration.

string $plugin_id: The plugin id.

mixed $plugin_definition: The plugin definition.

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.

\Drupal\Core\Render\RendererInterface $renderer: The renderer.

\Drupal\activity_creator\ActivityNotifications $activity_notifications: The activity creator, activity notifications.

\Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager: The Entity Type Manager.

\Drupal\Core\Config\ConfigFactoryInterface $configFactory: The Config Factory.

Overrides BlockPluginTrait::__construct

File

modules/social_features/social_user/src/Plugin/Block/AccountHeaderBlock.php, line 84

Class

AccountHeaderBlock
Provides a 'AccountHeaderBlock' block.

Namespace

Drupal\social_user\Plugin\Block

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, ModuleHandlerInterface $module_handler, RendererInterface $renderer, ActivityNotifications $activity_notifications, EntityTypeManagerInterface $entityTypeManager, ConfigFactoryInterface $configFactory) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->moduleHandler = $module_handler;
  $this->renderer = $renderer;
  $this->activityNotifications = $activity_notifications;
  $this->entityTypeManager = $entityTypeManager;
  $this->configFactory = $configFactory;
}