public function RedirectOnAccessDeniedSubscriber::__construct in Opigno dashboard 8
Same name and namespace in other branches
- 3.x src/EventSubscriber/RedirectOnAccessDeniedSubscriber.php \Drupal\opigno_dashboard\EventSubscriber\RedirectOnAccessDeniedSubscriber::__construct()
Constructs a new ResponseSubscriber instance.
Parameters
\Drupal\Core\Session\AccountInterface $current_user: The current user.
File
- src/
EventSubscriber/ RedirectOnAccessDeniedSubscriber.php, line 30
Class
- RedirectOnAccessDeniedSubscriber
- Class RedirectOnAccessDeniedSubscriber.
Namespace
Drupal\opigno_dashboard\EventSubscriberCode
public function __construct(AccountInterface $current_user) {
$this->user = $current_user;
}