Skip to content

Commit

Permalink
Merge pull request #1228 from GSA/1227-remove-life-event-in-building-…
Browse files Browse the repository at this point in the history
…benefit

1227 remove life event in building benefit for JSON data generation
  • Loading branch information
scottqueen-bixal authored Apr 17, 2024
2 parents 4b94bfb + 2a46b35 commit 4f27b12
Showing 1 changed file with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -465,14 +465,6 @@ public function buildBenefit($node) {
$benefit["tags"][] = $tag->get('name')->value;
}

// Build life event.
$lifeEvents = $node->get('field_b_life_events')->getValue();
foreach ($lifeEvents as $lifeEvent) {
$service = $this->entityTypeManager->getStorage('node');
$node1 = $service->load($lifeEvent['target_id']);
$benefit['lifeEvents'][] = $node1->get('title')->value;
}

// Build eligibilities.
$benefit_eligibilitys = [];
$eligibilities = $node->get('field_b_eligibility')->referencedEntities();
Expand Down

0 comments on commit 4f27b12

Please sign in to comment.