You are here

public function RouteSubscriber::__construct in Open Social 10.1.x

Same name in this branch
  1. 10.1.x modules/social_features/social_comment/src/Routing/RouteSubscriber.php \Drupal\social_comment\Routing\RouteSubscriber::__construct()
  2. 10.1.x modules/social_features/social_event/modules/social_event_managers/src/EventSubscriber/RouteSubscriber.php \Drupal\social_event_managers\EventSubscriber\RouteSubscriber::__construct()
Same name and namespace in other branches
  1. 10.3.x modules/social_features/social_comment/src/Routing/RouteSubscriber.php \Drupal\social_comment\Routing\RouteSubscriber::__construct()
  2. 10.0.x modules/social_features/social_comment/src/Routing/RouteSubscriber.php \Drupal\social_comment\Routing\RouteSubscriber::__construct()
  3. 10.2.x modules/social_features/social_comment/src/Routing/RouteSubscriber.php \Drupal\social_comment\Routing\RouteSubscriber::__construct()

Constructs a new RouteSubscriber.

Parameters

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: Config Factory.

File

modules/social_features/social_comment/src/Routing/RouteSubscriber.php, line 27

Class

RouteSubscriber
Listens to the dynamic route events.

Namespace

Drupal\social_comment\Routing

Code

public function __construct(ConfigFactoryInterface $config_factory) {
  $this->configFactory = $config_factory;
}