public function Subscriptions::__construct in Message Subscribe 8
Constructs the subscriptions block.
Parameters
array $configuration: A configuration array containing information about the plugin instance.
string $plugin_id: The plugin_id for the plugin instance.
mixed $plugin_definition: The plugin implementation definition.
\Drupal\Core\Form\FormBuilderInterface $form_builder: The form builder service.
\Drupal\message_subscribe\SubscribersInterface $subscribers: The subscribers service.
\Drupal\Core\Routing\RouteMatchInterface $route_match: The current route match service.
\Drupal\Core\Session\AccountProxyInterface $current_user: The current user.
\Drupal\flag\FlagServiceInterface $flag_service: The flag service.
Overrides BlockPluginTrait::__construct
File
- message_subscribe_ui/
src/ Plugin/ Block/ Subscriptions.php, line 85
Class
- Subscriptions
- An entity subscriptions block.
Namespace
Drupal\message_subscribe_ui\Plugin\BlockCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, FormBuilderInterface $form_builder, SubscribersInterface $subscribers, RouteMatchInterface $route_match, AccountProxyInterface $current_user, FlagServiceInterface $flag_service) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->currentUser = $current_user;
$this->flagService = $flag_service;
$this->formBuilder = $form_builder;
$this->routeMatch = $route_match;
$this->subscribers = $subscribers;
}