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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.