By mostepaniukvm on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
8.x-2.x
Introduced in version:
8.x-2.1
Issue links:
Description:
Custom elements start respecting site language and creating from actual entity translation.
Also you can specify $langcode to generate custom element for specific entity translation.
$custom_element = \Drupal::service('custom_elements.generator')->generate($entity, 'teaser', 'de');
Impacts:
Module developers