public function EntityTranslationController::__construct

Initializes an instance of the entity translation controller.

Parameters

string $entity_type: The type of the entity being translated.

array $entity_info: The info array of the given entity type.

File

drupal/core/modules/translation_entity/lib/Drupal/translation_entity/EntityTranslationController.php, line 40
Definition of Drupal\translation_entity\EntityTranslationController.

Class

EntityTranslationController
Base class for entity translation controllers.

Namespace

Drupal\translation_entity

Code

public function __construct($entity_type, $entity_info) {
  $this->entityType = $entity_type;
  $this->entityInfo = $entity_info;
}