You are here

public function PushBase::__construct in Open Social 8.8

Same name and namespace in other branches
  1. 8.9 modules/custom/activity_send/modules/activity_send_push_notification/src/PushBase.php \Drupal\activity_send_push_notification\PushBase::__construct()
  2. 8.7 modules/custom/activity_send/modules/activity_send_push_notification/src/PushBase.php \Drupal\activity_send_push_notification\PushBase::__construct()
  3. 10.3.x modules/custom/activity_send/modules/activity_send_push_notification/src/PushBase.php \Drupal\activity_send_push_notification\PushBase::__construct()
  4. 10.0.x modules/custom/activity_send/modules/activity_send_push_notification/src/PushBase.php \Drupal\activity_send_push_notification\PushBase::__construct()
  5. 10.1.x modules/custom/activity_send/modules/activity_send_push_notification/src/PushBase.php \Drupal\activity_send_push_notification\PushBase::__construct()
  6. 10.2.x modules/custom/activity_send/modules/activity_send_push_notification/src/PushBase.php \Drupal\activity_send_push_notification\PushBase::__construct()

Constructs a PushBase object.

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\StringTranslation\TranslationInterface $string_translation: The string translation service.

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The configuration factory.

int $current_user_id: The current active user ID.

Overrides PluginBase::__construct

File

modules/custom/activity_send/modules/activity_send_push_notification/src/PushBase.php, line 51

Class

PushBase
Class PushBase.

Namespace

Drupal\activity_send_push_notification

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, TranslationInterface $string_translation, ConfigFactoryInterface $config_factory, $current_user_id) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this
    ->setStringTranslation($string_translation);
  $this->configFactory = $config_factory;
  $this->currentUserId = $current_user_id;
}