You are here

public function SearchApiAttachmentsLinksAlterSettings::propertyInfo in Search API attachments 7

Adds attachments property.

Return value

array containing the property.

Overrides SearchApiAttachmentsAlterSettings::propertyInfo

File

contrib/search_api_attachments_links/includes/callback_attachments_links_settings.inc, line 55
Search API data alteration callback.

Class

SearchApiAttachmentsLinksAlterSettings
@file Search API data alteration callback.

Code

public function propertyInfo() {
  $ret = array();
  $fields = $this
    ->getLinkFields();
  foreach ($fields as $name => $field) {
    $ret['attachments_links_' . $name] = array(
      'label' => 'Attachment linked content: ' . $name,
      'description' => $name,
      'type' => 'text',
    );
  }
  return $ret;
}