You are here

public function SolrFieldTypeInterface::getFieldTypeAsJson in Search API Solr 8.2

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

Gets the Solr Field Type definition as JSON.

The JSON format is used to interact with a managed Solr schema.

Parameters

bool $pretty: Return pretty printed JSON.

Return value

string The Solr Field Type definition as JSON.

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

File

src/SolrFieldTypeInterface.php, line 62

Class

SolrFieldTypeInterface
Provides an interface defining a SolrFieldType entity.

Namespace

Drupal\search_api_solr

Code

public function getFieldTypeAsJson(bool $pretty = FALSE);