public function ProcessorPluginBase::getPropertyDefinitions in Search API 8
Retrieves the properties this processor defines for the given datasource.
Property names have to start with a letter or an underscore, followed by any number of letters, numbers and underscores. To avoid collisions, it is also recommended to prefix the property name with the identifier of the module defining the processor.
Parameters
\Drupal\search_api\Datasource\DatasourceInterface|null $datasource: (optional) The datasource this set of properties belongs to. If NULL, the datasource-independent properties should be added (or modified).
Return value
\Drupal\search_api\Processor\ProcessorPropertyInterface[] An array of property definitions for that datasource, keyed by property names.
Overrides ProcessorInterface::getPropertyDefinitions
8 methods override ProcessorPluginBase::getPropertyDefinitions()
- AddURL::getPropertyDefinitions in src/
Plugin/ search_api/ processor/ AddURL.php - Retrieves the properties this processor defines for the given datasource.
- AggregatedFields::getPropertyDefinitions in src/
Plugin/ search_api/ processor/ AggregatedFields.php - Retrieves the properties this processor defines for the given datasource.
- ContentAccess::getPropertyDefinitions in src/
Plugin/ search_api/ processor/ ContentAccess.php - Retrieves the properties this processor defines for the given datasource.
- LanguageWithFallback::getPropertyDefinitions in src/
Plugin/ search_api/ processor/ LanguageWithFallback.php - Retrieves the properties this processor defines for the given datasource.
- RenderedItem::getPropertyDefinitions in src/
Plugin/ search_api/ processor/ RenderedItem.php - Retrieves the properties this processor defines for the given datasource.
File
- src/
Processor/ ProcessorPluginBase.php, line 148
Class
- ProcessorPluginBase
- Defines a base class from which other processors may extend.
Namespace
Drupal\search_api\ProcessorCode
public function getPropertyDefinitions(DatasourceInterface $datasource = NULL) {
return [];
}