You are here

public function WidgetDatasource::getPropertyDefinitions in Search API Solr 8.3

Same name and namespace in other branches
  1. 4.x tests/modules/search_api_solr_test/src/Plugin/search_api/datasource/WidgetDatasource.php \Drupal\search_api_solr_test\Plugin\search_api\datasource\WidgetDatasource::getPropertyDefinitions()

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/modules/search_api_solr_test/src/Plugin/search_api/datasource/WidgetDatasource.php, line 22

Class

WidgetDatasource
Represents a datasource which exposes widgets.

Namespace

Drupal\search_api_solr_test\Plugin\search_api\datasource

Code

public function getPropertyDefinitions() {
  return \Drupal::typedDataManager()
    ->createDataDefinition('search_api_solr_test_widget')
    ->getPropertyDefinitions();
}