You are here

public function SolrFieldDefinition::isList in Search API Solr 4.x

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

Returns whether the data is multi-valued, i.e. a list of data items.

This is equivalent to checking whether the data definition implements the \Drupal\Core\TypedData\ListDefinitionInterface interface.

Return value

bool Whether the data is multi-valued.

Overrides DataDefinition::isList

File

src/TypedData/SolrFieldDefinition.php, line 43

Class

SolrFieldDefinition
Defines a class for Solr field definitions.

Namespace

Drupal\search_api_solr\TypedData

Code

public function isList() {
  return $this
    ->isMultivalued();
}