public function SolrDocument::getPropertyDefinitions in Search API Solr 8.2
Same name and namespace in other branches
- 8.3 src/Plugin/search_api/datasource/SolrDocument.php \Drupal\search_api_solr\Plugin\search_api\datasource\SolrDocument::getPropertyDefinitions()
- 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 167
Class
- SolrDocument
- Represents a datasource which exposes external Solr Documents.
Namespace
Drupal\search_api_solr\Plugin\search_api\datasourceCode
public function getPropertyDefinitions() {
$fields = [];
$server_id = $this->index
->getServerId();
if ($server_id) {
$fields = $this
->getSolrFieldManager()
->getFieldDefinitions($server_id);
}
return $fields;
}