You are here

public function SolrFieldTypeInterface::setCollatedFieldTypeAsJson in Search API Solr 8.3

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

Sets the Solr Collated Field Type definition as JSON.

Decodes the Solr Field Type definition encoded as JSON and stores an nested associative array internally. This method in useful to import a field type from an existing Solr server.

Parameters

string $collated_field_type: The Solr Spellcheck Field Type definition as JSON, might be empty if it doesn't exist.

Return value

self Collated field type as json.

1 method overrides SolrFieldTypeInterface::setCollatedFieldTypeAsJson()
SolrFieldType::setCollatedFieldTypeAsJson in src/Entity/SolrFieldType.php
Sets the Solr Collated Field Type definition as JSON.

File

src/SolrFieldTypeInterface.php, line 200

Class

SolrFieldTypeInterface
Provides an interface defining a SolrFieldType entity.

Namespace

Drupal\search_api_solr

Code

public function setCollatedFieldTypeAsJson($collated_field_type);