You are here

public function OpignoNotificationController::__construct in Opigno notifications 3.x

OpignoNotificationController constructor.

Parameters

\Drupal\Core\Render\RendererInterface $renderer: The renderer service.

\Drupal\Core\Session\AccountInterface $account: The current user account.

\Drupal\opigno_notification\Services\OpignoNotificationManager $notifications_manager: Opigno notifications manager service.

\Drupal\Core\Routing\Router $router: The router service.

\Drupal\private_message\Service\PrivateMessageServiceInterface $pm_service: The private messages service.

File

src/Controller/OpignoNotificationController.php, line 70

Class

OpignoNotificationController
Provides the controller for OpignoNotification entity pages.

Namespace

Drupal\opigno_notification\Controller

Code

public function __construct(RendererInterface $renderer, AccountInterface $account, OpignoNotificationManager $notifications_manager, Router $router, PrivateMessageServiceInterface $pm_service) {
  $this->renderer = $renderer;
  $this->currentUser = $account;
  $this->notificationsManager = $notifications_manager;
  $this->router = $router;
  $this->pmService = $pm_service;
}