You are here

public function SolrDocument::getPropertyDefinitions in Search API Solr 8.3

Same name and namespace in other branches
  1. 8.2 src/Plugin/search_api/datasource/SolrDocument.php \Drupal\search_api_solr\Plugin\search_api\datasource\SolrDocument::getPropertyDefinitions()
  2. 4.x src/Plugin/search_api/datasource/SolrDocument.php \Drupal\search_api_solr\Plugin\search_api\datasource\SolrDocument::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

1 call to SolrDocument::getPropertyDefinitions()
SolrDocument::buildConfigurationForm in src/Plugin/search_api/datasource/SolrDocument.php
Form constructor.

File

src/Plugin/search_api/datasource/SolrDocument.php, line 166

Class

SolrDocument
Represents a datasource which exposes external Solr Documents.

Namespace

Drupal\search_api_solr\Plugin\search_api\datasource

Code

public function getPropertyDefinitions() {
  return $this
    ->getSolrFieldManager()
    ->getFieldDefinitions($this->index);
}