You are here

private function ContentTaxonomyAutocompleteModeratedTermsSearchAPIProcessor::getTaxonomyFields in Content Taxonomy 7

Helper function that returns the taxonomy fields for the given search API property names.

1 call to ContentTaxonomyAutocompleteModeratedTermsSearchAPIProcessor::getTaxonomyFields()
ContentTaxonomyAutocompleteModeratedTermsSearchAPIProcessor::preprocessIndexItems in includes/content_taxonomy_autocomplete_moderated_terms.inc
Postprocess items while indexing and filter out the moderated terms.

File

includes/content_taxonomy_autocomplete_moderated_terms.inc, line 98

Class

ContentTaxonomyAutocompleteModeratedTermsSearchAPIProcessor
Search API Processor that filters out terms from moderated vocabularies.

Code

private function getTaxonomyFields($search_api_properties) {
  $taxonomy_fields = array();
  foreach ($search_api_properties as $search_api_property_name => $label) {
    if ($field = $this
      ->getTaxonomyField($search_api_property_name)) {
      $taxonomy_fields[$search_api_property_name] = $field;
    }
  }
  return $taxonomy_fields;
}