You are here

public function ProcessorProperty::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/ProcessorProperty.php, line 29

Class

ProcessorProperty
Provides a base class for normal processor-defined properties.

Namespace

Drupal\search_api\Processor

Code

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