public function ContentTranslationController::__construct in Drupal 9
Same name and namespace in other branches
- 8 core/modules/content_translation/src/Controller/ContentTranslationController.php \Drupal\content_translation\Controller\ContentTranslationController::__construct()
Initializes a content translation controller.
Parameters
\Drupal\content_translation\ContentTranslationManagerInterface $manager: A content translation manager instance.
\Drupal\Core\Entity\EntityFieldManagerInterface $entity_field_manager: The entity field manager service.
File
- core/
modules/ content_translation/ src/ Controller/ ContentTranslationController.php, line 44
Class
- ContentTranslationController
- Base class for entity translation controllers.
Namespace
Drupal\content_translation\ControllerCode
public function __construct(ContentTranslationManagerInterface $manager, EntityFieldManagerInterface $entity_field_manager) {
$this->manager = $manager;
$this->entityFieldManager = $entity_field_manager;
}