public function getWhereAreYouFromSpecifyOptions($where_are_you_from) {
    $options = [];
    if (empty($where_are_you_from)) {
      return $options;
    }
    // Try load tree first.
    $tree = $this->taxonomyStorage->loadTree(CAMPAIGN_WHERE_ARE_YOU_FROM_VID, $where_are_you_from, 1);
    if (!empty($tree)) {
      foreach ($tree as $term) {
        $options["term_{$term->tid}"] = $term->name;
      }
    }
    else {
      // Load tagged Branches / Facilities.
      $nodes = $this->nodeStorage->loadByProperties([
        'field_where_are_you_from_group' => $where_are_you_from,
        'status' => Node::PUBLISHED,
      ]);
      foreach ($nodes as $node) {
        $options["node_{$node->id()}"] = Unicode::truncate($node->getTitle(), 35, TRUE);
      }
    }
    asort($options);
    return $options;
  }
public function getWhereAreYouFromSpecifyOptions($where_are_you_from) {
    $options = [];
    if (empty($where_are_you_from)) {
      return $options;
    }
    // Try load tree first.
    $tree = $this->taxonomyStorage->loadTree(CAMPAIGN_WHERE_ARE_YOU_FROM_VID, $where_are_you_from, 1);
    if (!empty($tree)) {
      foreach ($tree as $term) {
        $options["term_{$term->tid}"] = $term->name;
      }
    }
    else {
      // Load tagged Branches / Facilities.
      $nodes = $this->nodeStorage->loadByProperties([
        'field_where_are_you_from_group' => $where_are_you_from,
        'status' => Node::PUBLISHED,
      ]);
      foreach ($nodes as $node) {
        $options["node_{$node->id()}"] = Unicode::truncate($node->getTitle(), 35, TRUE);
      }
    }
    asort($options);
    return $options;
  }
public function getWhereAreYouFromSpecifyOptions ( $ where_are_you_from ) { $ options = [ ] ; if ( empty ( $ where_are_you_from ) ) { return $ options ; } // Try load tree first. $ tree = $ this -> taxonomyStorage -> loadTree ( CAMPAIGN_WHERE_ARE_YOU_FROM_VID , $ where_are_you_from , 1 ) ; if ( ! empty ( $ tree ) ) { foreach ( $ tree as $ term ) { $ options [ "term_{$term->tid}" ] = $ term -> name ; } } else { // Load tagged Branches / Facilities. $ nodes = $ this -> nodeStorage -> loadByProperties ( [ 'field_where_are_you_from_group' => $ where_are_you_from , 'status' => Node :: PUBLISHED , ] ) ; foreach ( $ nodes as $ node ) { $ options [ "node_{$node->id()}" ] = Unicode :: truncate ( $ node -> getTitle ( ) , 35 , TRUE ) ; } } asort ( $ options ) ; return $ options ; }
Helper method to get "Please specify" options based on selection of "Where are you from".

@param mixed $where_are_you_from Where are you from option.
@return array List of options.
Helper method to get Please specify options based on selection of Where are you from .