You are here

public function DatasourcePluginBase::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 DatasourceInterface::getPropertyDefinitions

2 methods override DatasourcePluginBase::getPropertyDefinitions()
ContentEntity::getPropertyDefinitions in src/Plugin/search_api/datasource/ContentEntity.php
Retrieves the properties exposed by the underlying complex data type.
TestDatasource::getPropertyDefinitions in tests/search_api_test/src/Plugin/search_api/datasource/TestDatasource.php
Retrieves the properties exposed by the underlying complex data type.

File

src/Datasource/DatasourcePluginBase.php, line 44

Class

DatasourcePluginBase
Defines a base class from which other datasources may extend.

Namespace

Drupal\search_api\Datasource

Code

public function getPropertyDefinitions() {
  return [];
}