Entity translation

Entities are translatable across the boardlike most of everything else in Drupal 8. To mark an entity type as such, all we need is the following in the plugin annotation:

translatable = TRUE, 

This exposes the entity type to all the multilingual goodness. However, as we will see a bit later, the individual fields also need to be declared translatable.

Get Drupal 8 Module Development - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.