From f554f7de3d1900c23fe9f32f51e14987bf26983c Mon Sep 17 00:00:00 2001 From: Mike Gikas Date: Fri, 20 Jan 2023 13:38:00 +0200 Subject: [PATCH 1/2] Update next_extras.module add content_translation to taxonomy terms --- modules/next/modules/next_extras/next_extras.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/next/modules/next_extras/next_extras.module b/modules/next/modules/next_extras/next_extras.module index 6a960029..f4f21600 100644 --- a/modules/next/modules/next_extras/next_extras.module +++ b/modules/next/modules/next_extras/next_extras.module @@ -18,7 +18,7 @@ use Drupal\next\Entity\NextEntityTypeConfigInterface; */ function next_extras_entity_base_field_info(EntityTypeInterface $entity_type) { if (\Drupal::moduleHandler()->moduleExists('content_translation')) { - if (in_array($entity_type->id(), ['node'])) { + if (in_array($entity_type->id(), ['node','taxonomy_term'])) { $fields['content_translations'] = BaseFieldDefinition::create('content_translations') ->setLabel(t('Content Translations')) ->setCardinality(FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED) From bbeda9c2e66f8a8f0391d2ff6d41f14a926d09cd Mon Sep 17 00:00:00 2001 From: Mike Gikas Date: Fri, 20 Jan 2023 13:42:48 +0200 Subject: [PATCH 2/2] Update next_extras.module --- modules/next/modules/next_extras/next_extras.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/next/modules/next_extras/next_extras.module b/modules/next/modules/next_extras/next_extras.module index f4f21600..e58d9c71 100644 --- a/modules/next/modules/next_extras/next_extras.module +++ b/modules/next/modules/next_extras/next_extras.module @@ -18,7 +18,7 @@ use Drupal\next\Entity\NextEntityTypeConfigInterface; */ function next_extras_entity_base_field_info(EntityTypeInterface $entity_type) { if (\Drupal::moduleHandler()->moduleExists('content_translation')) { - if (in_array($entity_type->id(), ['node','taxonomy_term'])) { + if (in_array($entity_type->id(), ['node', 'taxonomy_term'])) { $fields['content_translations'] = BaseFieldDefinition::create('content_translations') ->setLabel(t('Content Translations')) ->setCardinality(FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED)