O'Reilly logo

Drupal 8 Module Development by Daniel Sipos

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Entity translation

Entities are translatable in Drupal 8--like most of everything else--across the board. 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 need to also be declared translatable.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required