ContentTranslationMetadataWrapper::__construct

public ContentTranslationMetadataWrapper::__construct(EntityInterface $translation, ContentTranslationHandlerInterface $handler)

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 35

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;
}
doc_Drupal
2016-10-29 08:58:26
Comments
Leave a Comment

Please login to continue.