public function ResponseSubscriber::__construct in Moderation Dashboard 8
Same name and namespace in other branches
- 2.0.x src/Routing/ResponseSubscriber.php \Drupal\moderation_dashboard\Routing\ResponseSubscriber::__construct()
ResponseSubscriber constructor.
Parameters
\Drupal\Core\Session\AccountProxyInterface $current_user: The current user.
\Drupal\Core\Condition\ConditionManager $condition_manager: The condition plugin manager.
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory.
File
- src/
Routing/ ResponseSubscriber.php, line 51
Class
- ResponseSubscriber
- Response subscriber to redirect user login to the Moderation Dashboard.
Namespace
Drupal\moderation_dashboard\RoutingCode
public function __construct(AccountProxyInterface $current_user, ConditionManager $condition_manager, ConfigFactoryInterface $config_factory) {
$this->currentUser = $current_user;
$this->conditionManager = $condition_manager;
$this->configFactory = $config_factory;
}