function ContentTranslationController::__construct
Initializes a content translation controller.
Parameters
\Drupal\content_translation\ContentTranslationManagerInterface $manager: A content translation manager instance.
\Drupal\Core\Entity\EntityFieldManagerInterface $entityFieldManager: The entity field manager service.
\Drupal\Component\Datetime\TimeInterface $time: The time service.
File
-
core/
modules/ content_translation/ src/ Controller/ ContentTranslationController.php, line 33
Class
- ContentTranslationController
- Base class for entity translation controllers.
Namespace
Drupal\content_translation\ControllerCode
public function __construct(protected ContentTranslationManagerInterface $manager, protected EntityFieldManagerInterface $entityFieldManager, protected TimeInterface $time) {
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.