public function TestDatasource::getPropertyDefinitions in Search API 8
Retrieves the properties exposed by the underlying complex data type.
Property names have to start with a letter or an underscore, followed by any number of letters, numbers and underscores.
Return value
\Drupal\Core\TypedData\DataDefinitionInterface[] An associative array of property data types, keyed by the property name.
Overrides DatasourcePluginBase::getPropertyDefinitions
File
- tests/
search_api_test/ src/ Plugin/ search_api/ datasource/ TestDatasource.php, line 48
Class
- TestDatasource
- Provides a datasource for testing purposes.
Namespace
Drupal\search_api_test\Plugin\search_api\datasourceCode
public function getPropertyDefinitions() {
return $this
->getReturnValue(__FUNCTION__, []);
}