public function EventRequestEnrollmentNotification::__construct in Open Social 10.2.x
Same name and namespace in other branches
- 8.9 modules/social_features/social_event/src/Plugin/Block/EventRequestEnrollmentNotification.php \Drupal\social_event\Plugin\Block\EventRequestEnrollmentNotification::__construct()
- 10.3.x modules/social_features/social_event/src/Plugin/Block/EventRequestEnrollmentNotification.php \Drupal\social_event\Plugin\Block\EventRequestEnrollmentNotification::__construct()
- 10.0.x modules/social_features/social_event/src/Plugin/Block/EventRequestEnrollmentNotification.php \Drupal\social_event\Plugin\Block\EventRequestEnrollmentNotification::__construct()
- 10.1.x modules/social_features/social_event/src/Plugin/Block/EventRequestEnrollmentNotification.php \Drupal\social_event\Plugin\Block\EventRequestEnrollmentNotification::__construct()
Constructs SocialGroupRequestMembershipNotification.
Parameters
array $configuration: Configuration array.
string $plugin_id: Plugin ID.
mixed $plugin_definition: Plugin definition.
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
\Drupal\Core\StringTranslation\TranslationManager $translation: The translation manager.
\Drupal\Core\Routing\RouteMatchInterface $route_match: Current route match.
\Drupal\Core\Logger\LoggerChannelFactoryInterface $logger_factory: The logger factory service.
Overrides BlockPluginTrait::__construct
File
- modules/
social_features/ social_event/ src/ Plugin/ Block/ EventRequestEnrollmentNotification.php, line 85
Class
- EventRequestEnrollmentNotification
- Provides a 'Event requests notification' block.
Namespace
Drupal\social_event\Plugin\BlockCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityTypeManagerInterface $entity_type_manager, TranslationManager $translation, RouteMatchInterface $route_match, LoggerChannelFactoryInterface $logger_factory) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->event = social_event_get_current_event();
$this->entityTypeManager = $entity_type_manager;
$this->translation = $translation;
$this->routeMatch = $route_match;
$this->loggerFactory = $logger_factory;
}