function ContentTranslationRouteSubscriber::__construct

Same name in other branches
  1. 9 core/modules/content_translation/src/Routing/ContentTranslationRouteSubscriber.php \Drupal\content_translation\Routing\ContentTranslationRouteSubscriber::__construct()
  2. 8.9.x core/modules/content_translation/src/Routing/ContentTranslationRouteSubscriber.php \Drupal\content_translation\Routing\ContentTranslationRouteSubscriber::__construct()
  3. 11.x core/modules/content_translation/src/Routing/ContentTranslationRouteSubscriber.php \Drupal\content_translation\Routing\ContentTranslationRouteSubscriber::__construct()

Constructs a ContentTranslationRouteSubscriber object.

Parameters

\Drupal\content_translation\ContentTranslationManagerInterface $content_translation_manager: The content translation manager.

File

core/modules/content_translation/src/Routing/ContentTranslationRouteSubscriber.php, line 30

Class

ContentTranslationRouteSubscriber
Subscriber for entity translation routes.

Namespace

Drupal\content_translation\Routing

Code

public function __construct(ContentTranslationManagerInterface $content_translation_manager) {
    $this->contentTranslationManager = $content_translation_manager;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.