private function getCampNodeCampMenu(NodeInterface $node) {
    if ($node->bundle() != 'camp') {
      return [];
    }

    $links = [];
    foreach ($node->field_camp_menu_links->getValue() as $link) {
      $links[] = $link;
    }

    return $links;
  }
private function getCampNodeCampMenu(NodeInterface $node) {
    if ($node->bundle() != 'camp') {
      return [];
    }

    $links = [];
    foreach ($node->field_camp_menu_links->getValue() as $link) {
      $links[] = $link;
    }

    return $links;
  }
private function getCampNodeCampMenu ( NodeInterface $ node ) { if ( $ node -> bundle ( ) != 'camp' ) { return [ ] ; } $ links = [ ] ; foreach ( $ node -> field_camp_menu_links -> getValue ( ) as $ link ) { $ links [ ] = $ link ; } return $ links ; }
Retrieves Camp menu for the Camp CT node.

@param \Drupal\node\NodeInterface $node
The Camp node.

@return array
Array of menu links.
Retrieves Camp menu for the Camp CT node .