You are here

public function SolrFieldTypeInterface::setFieldTypeAsJson in Search API Solr 4.x

Same name and namespace in other branches
  1. 8.3 src/SolrFieldTypeInterface.php \Drupal\search_api_solr\SolrFieldTypeInterface::setFieldTypeAsJson()
  2. 8.2 src/SolrFieldTypeInterface.php \Drupal\search_api_solr\SolrFieldTypeInterface::setFieldTypeAsJson()

Sets the Solr 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 $field_type: The Solr Field Type definition as JSON.

Return value

self Field type as json.

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

File

src/SolrFieldTypeInterface.php, line 87

Class

SolrFieldTypeInterface
Provides an interface defining a SolrFieldType entity.

Namespace

Drupal\search_api_solr

Code

public function setFieldTypeAsJson($field_type);