public function M4032404EventSubscriber::__construct in 403 to 404 8
Constructor for m4032404EventSubscriber.
Parameters
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The settings config.
\Drupal\Core\Routing\AdminContext $admin_context: The admin context.
\Drupal\Core\Session\AccountProxyInterface $current_user: The current user.
File
- src/
EventSubscriber/ M4032404EventSubscriber.php, line 50
Class
- M4032404EventSubscriber
- Provides a subscriber to set the properly exception.
Namespace
Drupal\m4032404\EventSubscriberCode
public function __construct(ConfigFactoryInterface $config_factory, AdminContext $admin_context, AccountProxyInterface $current_user) {
$this->config = $config_factory
->get('m4032404.settings');
$this->adminContext = $admin_context;
$this->currentUser = $current_user;
}