function ContentTranslationManagerInterface::getTranslationMetadata

Same name in other branches
  1. 8.9.x core/modules/content_translation/src/ContentTranslationManagerInterface.php \Drupal\content_translation\ContentTranslationManagerInterface::getTranslationMetadata()
  2. 10 core/modules/content_translation/src/ContentTranslationManagerInterface.php \Drupal\content_translation\ContentTranslationManagerInterface::getTranslationMetadata()
  3. 11.x core/modules/content_translation/src/ContentTranslationManagerInterface.php \Drupal\content_translation\ContentTranslationManagerInterface::getTranslationMetadata()

Returns an instance of the Content translation metadata.

Parameters

\Drupal\Core\Entity\EntityInterface $translation: The entity translation whose metadata needs to be retrieved.

Return value

\Drupal\content_translation\ContentTranslationMetadataWrapperInterface An instance of the content translation metadata.

1 method overrides ContentTranslationManagerInterface::getTranslationMetadata()
ContentTranslationManager::getTranslationMetadata in core/modules/content_translation/src/ContentTranslationManager.php
Returns an instance of the Content translation metadata.

File

core/modules/content_translation/src/ContentTranslationManagerInterface.php, line 51

Class

ContentTranslationManagerInterface
Provides an interface for common functionality for content translation.

Namespace

Drupal\content_translation

Code

public function getTranslationMetadata(EntityInterface $translation);

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