You are here

public function PushManager::__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/PushManager.php \Drupal\activity_send_push_notification\PushManager::__construct()
  2. 8.7 modules/custom/activity_send/modules/activity_send_push_notification/src/PushManager.php \Drupal\activity_send_push_notification\PushManager::__construct()
  3. 10.3.x modules/custom/activity_send/modules/activity_send_push_notification/src/PushManager.php \Drupal\activity_send_push_notification\PushManager::__construct()
  4. 10.0.x modules/custom/activity_send/modules/activity_send_push_notification/src/PushManager.php \Drupal\activity_send_push_notification\PushManager::__construct()
  5. 10.1.x modules/custom/activity_send/modules/activity_send_push_notification/src/PushManager.php \Drupal\activity_send_push_notification\PushManager::__construct()
  6. 10.2.x modules/custom/activity_send/modules/activity_send_push_notification/src/PushManager.php \Drupal\activity_send_push_notification\PushManager::__construct()

Constructs a PushManager object.

Parameters

\Traversable $namespaces: An object that implements \Traversable which contains the root paths keyed by the corresponding namespace to look for plugin implementations.

\Drupal\Core\Cache\CacheBackendInterface $cache_backend: Cache backend instance to use.

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler to invoke the alter hook with.

Overrides DefaultPluginManager::__construct

File

modules/custom/activity_send/modules/activity_send_push_notification/src/PushManager.php, line 30

Class

PushManager
Class PushManager.

Namespace

Drupal\activity_send_push_notification

Code

public function __construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler) {
  parent::__construct('Plugin/Push', $namespaces, $module_handler, PushInterface::class, Push::class);
  $this
    ->alterInfo('push_info');
  $this
    ->setCacheBackend($cache_backend, 'push');
}