diff --git a/core/modules/taxonomy/src/Entity/Term.php b/core/modules/taxonomy/src/Entity/Term.php index 435cbe6..cd3fe5a 100644 --- a/core/modules/taxonomy/src/Entity/Term.php +++ b/core/modules/taxonomy/src/Entity/Term.php @@ -33,7 +33,8 @@ * }, * "translation" = "Drupal\taxonomy\TermTranslationHandler" * }, - * base_table = "taxonomy_term_data", + * base_table = "taxonomy_term", + * data_table = "taxonomy_term_data", * uri_callback = "taxonomy_term_uri", * fieldable = TRUE, * translatable = TRUE, @@ -126,6 +127,7 @@ public static function baseFieldDefinitions(EntityTypeInterface $entity_type) { ->setLabel(t('Name')) ->setDescription(t('The term name.')) ->setRequired(TRUE) + ->setTranslatable(TRUE) ->setSetting('max_length', 255) ->setDisplayOptions('view', array( 'label' => 'hidden', @@ -142,6 +144,7 @@ public static function baseFieldDefinitions(EntityTypeInterface $entity_type) { ->setLabel(t('Description')) ->setDescription(t('A description of the term.')) ->setSetting('text_processing', 1) + ->setTranslatable(TRUE) ->setDisplayOptions('view', array( 'label' => 'hidden', 'type' => 'text_default',