You are here

public function SearchApiFieldTrait::isMultiple in Search API 8

Determines whether this field can have multiple values.

When this can't be reliably determined, the method defaults to TRUE.

Return value

bool TRUE if this field can have multiple values (or if it couldn't be determined); FALSE otherwise.

2 calls to SearchApiFieldTrait::isMultiple()
SearchApiFieldTrait::buildOptionsForm in src/Plugin/views/field/SearchApiFieldTrait.php
Provide a form to edit options for this plugin.
SearchApiFieldTrait::defineOptions in src/Plugin/views/field/SearchApiFieldTrait.php
Defines the options used by this plugin.

File

src/Plugin/views/field/SearchApiFieldTrait.php, line 212

Class

SearchApiFieldTrait
Provides a trait to use for Search API Views field handlers.

Namespace

Drupal\search_api\Plugin\views\field

Code

public function isMultiple() {
  return $this instanceof MultiItemsFieldHandlerInterface;
}