You are here

public function ContentTranslationMetadataWrapper::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/content_translation/src/ContentTranslationMetadataWrapper.php \Drupal\content_translation\ContentTranslationMetadataWrapper::__construct()

Initializes an instance of the content translation metadata handler.

Parameters

EntityInterface $translation: The entity translation to be wrapped.

ContentTranslationHandlerInterface $handler: The content translation handler.

File

core/modules/content_translation/src/ContentTranslationMetadataWrapper.php, line 40
Contains \Drupal\content_translation\ContentTranslationMetadataWrapper.

Class

ContentTranslationMetadataWrapper
Base class for content translation metadata wrappers.

Namespace

Drupal\content_translation

Code

public function __construct(EntityInterface $translation, ContentTranslationHandlerInterface $handler) {
  $this->translation = $translation;
  $this->handler = $handler;
}