You are here

public function SolrFieldDefinition::isIndexed in Search API Solr 8.3

Same name and namespace in other branches
  1. 8.2 src/TypedData/SolrFieldDefinition.php \Drupal\search_api_solr\TypedData\SolrFieldDefinition::isIndexed()
  2. 4.x src/TypedData/SolrFieldDefinition.php \Drupal\search_api_solr\TypedData\SolrFieldDefinition::isIndexed()

Determines whether this field is indexed.

Return value

bool TRUE if the field is indexed, FALSE otherwise.

Overrides SolrFieldDefinitionInterface::isIndexed

3 calls to SolrFieldDefinition::isIndexed()
SolrFieldDefinition::isFilterable in src/TypedData/SolrFieldDefinition.php
Determine whether a field is suitable for filtering.
SolrFieldDefinition::isFulltextSearchable in src/TypedData/SolrFieldDefinition.php
Determine whether a field is suitable for fulltext search.
SolrFieldDefinition::isSortable in src/TypedData/SolrFieldDefinition.php
Determine whether a field is suitable for sorting.

File

src/TypedData/SolrFieldDefinition.php, line 90

Class

SolrFieldDefinition
Defines a class for Solr field definitions.

Namespace

Drupal\search_api_solr\TypedData

Code

public function isIndexed() {
  $this
    ->getSchema();
  return isset($this->schema['I']);
}