public function SolrFieldType::setFieldType in Search API Solr 4.x
Same name and namespace in other branches
- 8.3 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\EntityCode
public function setFieldType(array $field_type) {
$this->field_type = $field_type;
return $this;
}