function ContentTranslationController::create

Same name in other branches
  1. 9 core/modules/content_translation/src/Controller/ContentTranslationController.php \Drupal\content_translation\Controller\ContentTranslationController::create()
  2. 8.9.x 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 AutowireTrait::create

File

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

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'), $container->get('datetime.time'));
}

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