From 179bdc641eef9a303e834ca266f4c6668a3518d2 Mon Sep 17 00:00:00 2001 From: Alex Finnarn Date: Wed, 17 Jan 2024 13:20:26 -0500 Subject: [PATCH] try commenting out computed field defintion to see if it affects test failures I cannot view --- .../custom/va_gov_api/va_gov_api.module | 28 +++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/docroot/modules/custom/va_gov_api/va_gov_api.module b/docroot/modules/custom/va_gov_api/va_gov_api.module index 4c46f987e2..fc289b40d2 100644 --- a/docroot/modules/custom/va_gov_api/va_gov_api.module +++ b/docroot/modules/custom/va_gov_api/va_gov_api.module @@ -5,9 +5,9 @@ * Defines the hooks for va_gov_api module. */ -use Drupal\Core\Entity\EntityTypeInterface; -use Drupal\Core\Field\BaseFieldDefinition; -use Drupal\Core\Field\FieldStorageDefinitionInterface; +//use Drupal\Core\Entity\EntityTypeInterface; +//use Drupal\Core\Field\BaseFieldDefinition; +//use Drupal\Core\Field\FieldStorageDefinitionInterface; /** * Implements hook_entity_bundle_field_info(). @@ -16,14 +16,14 @@ use Drupal\Core\Field\FieldStorageDefinitionInterface; * * @see core_event_dispatcher.module#L26 */ -function va_gov_api_entity_bundle_field_info(EntityTypeInterface $entity_type, $bundle, array $base_field_definitions) { - if ($bundle === 'full_width_banner_alert') { - $base_field_definitions['computed_situations_updates'] = BaseFieldDefinition::create('map') - ->setName('computed_situations_updates') - ->setLabel(t('Computed Situation Updates')) - ->setComputed(TRUE) - ->setClass('\Drupal\va_gov_api\Field\ComputedSituationUpdatesItemList') - ->setCardinality(FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED); - } - return $base_field_definitions; -} +//function va_gov_api_entity_bundle_field_info(EntityTypeInterface $entity_type, $bundle, array $base_field_definitions) { +// if ($bundle === 'full_width_banner_alert') { +// $base_field_definitions['computed_situations_updates'] = BaseFieldDefinition::create('map') +// ->setName('computed_situations_updates') +// ->setLabel(t('Computed Situation Updates')) +// ->setComputed(TRUE) +// ->setClass('\Drupal\va_gov_api\Field\ComputedSituationUpdatesItemList') +// ->setCardinality(FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED); +// } +// return $base_field_definitions; +//}