You are here

public function SolrFieldType::setSpellcheckFieldType in Search API Solr 8.3

Same name and namespace in other branches
  1. 4.x src/Entity/SolrFieldType.php \Drupal\search_api_solr\Entity\SolrFieldType::setSpellcheckFieldType()

Sets the Solr Spellcheck Field Type definition as nested associative array.

Parameters

array $spellcheck_field_type: The Solr SpellcheckField Type definition as nested associative array.

Return value

self Spellcheck field type.

Overrides SolrFieldTypeInterface::setSpellcheckFieldType

File

src/Entity/SolrFieldType.php, line 139

Class

SolrFieldType
Defines the SolrFieldType entity.

Namespace

Drupal\search_api_solr\Entity

Code

public function setSpellcheckFieldType(array $spellcheck_field_type) {
  $this->spellcheck_field_type = $spellcheck_field_type;
  return $this;
}