You are here

public function SocialEventInviteLocalActionsBlock::__construct in Open Social 8.9

Same name and namespace in other branches
  1. 10.3.x modules/social_features/social_event/modules/social_event_invite/src/Plugin/Block/SocialEventInviteLocalActionsBlock.php \Drupal\social_event_invite\Plugin\Block\SocialEventInviteLocalActionsBlock::__construct()
  2. 10.0.x modules/social_features/social_event/modules/social_event_invite/src/Plugin/Block/SocialEventInviteLocalActionsBlock.php \Drupal\social_event_invite\Plugin\Block\SocialEventInviteLocalActionsBlock::__construct()
  3. 10.1.x modules/social_features/social_event/modules/social_event_invite/src/Plugin/Block/SocialEventInviteLocalActionsBlock.php \Drupal\social_event_invite\Plugin\Block\SocialEventInviteLocalActionsBlock::__construct()
  4. 10.2.x modules/social_features/social_event/modules/social_event_invite/src/Plugin/Block/SocialEventInviteLocalActionsBlock.php \Drupal\social_event_invite\Plugin\Block\SocialEventInviteLocalActionsBlock::__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 $routeMatch: The route match.

\Drupal\social_event_invite\SocialEventInviteAccessHelper $accessHelper: The event invite access helper.

Overrides BlockPluginTrait::__construct

File

modules/social_features/social_event/modules/social_event_invite/src/Plugin/Block/SocialEventInviteLocalActionsBlock.php, line 58

Class

SocialEventInviteLocalActionsBlock
Provides a 'SocialEventInviteLocalActionsBlock' block.

Namespace

Drupal\social_event_invite\Plugin\Block

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, RouteMatchInterface $routeMatch, SocialEventInviteAccessHelper $accessHelper) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->routeMatch = $routeMatch;
  $this->accessHelper = $accessHelper;
}