You are here

public function SolrFieldDefinition::isLazy in Search API Solr 8.2

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

Determines whether this field is lazy-loaded.

Return value

bool TRUE if the field is lazy-loaded, FALSE otherwise.

Overrides SolrFieldDefinitionInterface::isLazy

File

src/TypedData/SolrFieldDefinition.php, line 154

Class

SolrFieldDefinition
Defines a class for Solr field definitions.

Namespace

Drupal\search_api_solr\TypedData

Code

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