Change record status: 
Published
Project: 
Introduced in branch: 
8.0.x
Introduced in version: 
8.0.0-beta5
Description: 

Content translation metadata is now accessed through an entity translation wrapper class. The Content Translation handler is responsible to expose field definitions for each metadata item. The wrapper provides methods to access the various metadata values. This approach allows to provide an alternative set of field definitions for each entity type and retrieve field values accordingly or even implement more complex logic on top of those.

Before:

<?php
$metadata
= $entity->translation;
$source = $metadata[$langcode]['source'];
$outdated = $metadata[$langcode]['outdated'];
?>

After:

<?php
$manager
= \Drupal::service('content_translation.manager');
$metadata = $manager->getTranslationMetadata($entity->getTranslation($langcode));
$source = $metadata->getSource();
$outdated = $metadata->isOutdated();
?>
Impacts: 
Module developers
Online documentation: 
Not done
Theming guide: 
Not done
Module developer documentation: 
Not done
Examples project: 
Not done
Coder Review: 
Not done
Coder Upgrade: 
Not done
Other: 
Other updates done