You are here

public function SolrFieldType::setFieldType 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::setFieldType()

Sets the Solr Field Type definition as nested associative array.

Parameters

array $field_type: The Solr Field Type definition as nested associative array.

Return value

self Field type.

Overrides SolrFieldTypeInterface::setFieldType

File

src/Entity/SolrFieldType.php, line 117

Class

SolrFieldType
Defines the SolrFieldType entity.

Namespace

Drupal\search_api_solr\Entity

Code

public function setFieldType(array $field_type) {
  $this->field_type = $field_type;
  return $this;
}