You are here

protected function SearchApiAttachmentsParagraphsAlterSettings::getParagraphsFields in Search API attachments 7

1 call to SearchApiAttachmentsParagraphsAlterSettings::getParagraphsFields()
SearchApiAttachmentsParagraphsAlterSettings::alterItems in contrib/search_api_attachments_paragraphs/includes/callback_attachments_paragraphs_settings.inc
Alter items before indexing.

File

contrib/search_api_attachments_paragraphs/includes/callback_attachments_paragraphs_settings.inc, line 110
Search API data alteration callback.

Class

SearchApiAttachmentsParagraphsAlterSettings

Code

protected function getParagraphsFields() {
  $ret = array();
  foreach (field_info_fields() as $name => $field) {
    if ($field['type'] == 'paragraphs') {
      $ret[$name] = $field;
    }
  }
  return $ret;
}