You are here

protected function SearchApiAttachmentsAlterSettings::isMultipleIndexWithFile in Search API attachments 7

2 calls to SearchApiAttachmentsAlterSettings::isMultipleIndexWithFile()
SearchApiAttachmentsAlterSettings::alterItems in includes/callback_attachments_settings.inc
Alter items before indexing.
SearchApiAttachmentsAlterSettings::propertyInfo in includes/callback_attachments_settings.inc
Adds attachments property.

File

includes/callback_attachments_settings.inc, line 216
Search API data alteration callback.

Class

SearchApiAttachmentsAlterSettings
Indexes files content.

Code

protected function isMultipleIndexWithFile() {
  return $this->index->item_type == 'multiple' && isset($this->index->options['datasource']['types']) && in_array('file', $this->index->options['datasource']['types']);
}