You are here

public function FederatedTerms::getPropertyDefinitions in Search API Federated Solr 4.x

Same name and namespace in other branches
  1. 8.3 src/Plugin/search_api/processor/FederatedTerms.php \Drupal\search_api_federated_solr\Plugin\search_api\processor\FederatedTerms::getPropertyDefinitions()
  2. 8 src/Plugin/search_api/processor/FederatedTerms.php \Drupal\search_api_federated_solr\Plugin\search_api\processor\FederatedTerms::getPropertyDefinitions()
  3. 8.2 src/Plugin/search_api/processor/FederatedTerms.php \Drupal\search_api_federated_solr\Plugin\search_api\processor\FederatedTerms::getPropertyDefinitions()

File

src/Plugin/search_api/processor/FederatedTerms.php, line 32

Class

FederatedTerms
Normalize multiple taxonomy terms into federated terms.

Namespace

Drupal\search_api_federated_solr\Plugin\search_api\processor

Code

public function getPropertyDefinitions(DatasourceInterface $datasource = NULL) {
  $properties = [];
  if (!$datasource) {
    $definition = [
      'label' => $this
        ->t('Federated terms'),
      'description' => $this
        ->t('Normalize multiple taxonomy terms into federated terms.'),
      'type' => 'string',
      'processor_id' => $this
        ->getPluginId(),
      'is_list' => TRUE,
    ];
    $properties['federated_terms'] = new FederatedTermsProperty($definition);
  }
  return $properties;
}