You are here

public function EntityProcessorProperty::isList in Search API 8

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/Processor/EntityProcessorProperty.php, line 29

Class

EntityProcessorProperty
Provides a definition for a processor property that contains an entity.

Namespace

Drupal\search_api\Processor

Code

public function isList() {
  return (bool) ($this->definition['is_list'] ?? parent::isList());
}