Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ContentTranslationMetadataWrapper.php

function ContentTranslationMetadataWrapper::__construct

Initializes an instance of the content translation metadata handler.

Parameters

\Drupal\Core\Entity\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;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal