public function MappedTerms::getPropertyDefinitions in Search API Field Map 4.x
Same name and namespace in other branches
- 8.3 src/Plugin/search_api/processor/MappedTerms.php \Drupal\search_api_field_map\Plugin\search_api\processor\MappedTerms::getPropertyDefinitions()
- 8 src/Plugin/search_api/processor/MappedTerms.php \Drupal\search_api_field_map\Plugin\search_api\processor\MappedTerms::getPropertyDefinitions()
- 8.2 src/Plugin/search_api/processor/MappedTerms.php \Drupal\search_api_field_map\Plugin\search_api\processor\MappedTerms::getPropertyDefinitions()
File
- src/
Plugin/ search_api/ processor/ MappedTerms.php, line 32
Class
- MappedTerms
- Normalize multiple taxonomy terms into mapped terms.
Namespace
Drupal\search_api_field_map\Plugin\search_api\processorCode
public function getPropertyDefinitions(DatasourceInterface $datasource = NULL) {
$properties = [];
if (!$datasource) {
$definition = [
'label' => $this
->t('Mapped terms'),
'description' => $this
->t('Normalize multiple taxonomy terms into mapped terms.'),
'type' => 'string',
'processor_id' => $this
->getPluginId(),
'is_list' => TRUE,
];
$properties['mapped_terms'] = new MappedTermsProperty($definition);
}
return $properties;
}