function ContentTranslationController::create

Same name in other branches
  1. 8.9.x core/modules/content_translation/src/Controller/ContentTranslationController.php \Drupal\content_translation\Controller\ContentTranslationController::create()
  2. 10 core/modules/content_translation/src/Controller/ContentTranslationController.php \Drupal\content_translation\Controller\ContentTranslationController::create()
  3. 11.x core/modules/content_translation/src/Controller/ContentTranslationController.php \Drupal\content_translation\Controller\ContentTranslationController::create()

Overrides ControllerBase::create

File

core/modules/content_translation/src/Controller/ContentTranslationController.php, line 52

Class

ContentTranslationController
Base class for entity translation controllers.

Namespace

Drupal\content_translation\Controller

Code

public static function create(ContainerInterface $container) {
    return new static($container->get('content_translation.manager'), $container->get('entity_field.manager'));
}

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