You are here

public function SearchApiFederatedSolrField::propertyInfo in Search API Federated Solr 7

Same name and namespace in other branches
  1. 7.3 src/SearchApiFederatedSolrField.php \SearchApiFederatedSolrField::propertyInfo()
  2. 7.2 src/SearchApiFederatedSolrField.php \SearchApiFederatedSolrField::propertyInfo()

Implements SearchApiAlterCallbackInterface::propertyInfo().

Overrides SearchApiAbstractAlterCallback::propertyInfo

File

src/SearchApiFederatedSolrField.php, line 173

Class

SearchApiFederatedSolrField

Code

public function propertyInfo() {
  $properties = [];
  foreach ($this->options['fields'] as $field) {
    $properties[$field['machine_name']] = [
      'label' => $field['label'],
      'description' => t('Federated field.'),
      'type' => $field['type'],
    ];
  }
  return $properties;
}