SolrConfigInterface.php in Search API Solr 4.x
Same filename and directory in other branches
Namespace
Drupal\search_api_solrFile
src/SolrConfigInterface.phpView source
<?php
namespace Drupal\search_api_solr;
use Drupal\Core\Config\Entity\ConfigEntityInterface;
/**
* Provides an interface defining a Solr Config entity.
*/
interface SolrConfigInterface extends ConfigEntityInterface {
/**
* Gets the Solr Field Type specific additions to solrconfig.xml as array.
*
* @return array
* The Solr Field Type specific additions to solrconfig.xml as nested
* associative array.
*/
public function getSolrConfigs();
/**
* Sets the Solr Field Type specific additions to solrconfig.xml as array.
*
* @param array $solr_configs
* The Solr Field Type specific additions to solrconfig.xml as nested
* associative array.
*
* @return self
*/
public function setSolrConfigs(array $solr_configs);
/**
* Gets the Solr Field Type specific additions to solrconfig.xml as XML.
*
* The XML format is used as part of a classic Solr solrconf.xml.
*
* @param bool $add_comment
* Wether to add a comment to the XML or not to explain the purpose of
* these configs.
*
* @return string
* The Solr Field Type specific additions to solrconfig.xml as XML.
*/
public function getSolrConfigsAsXml($add_comment = TRUE);
/**
* Gets the minimum Solr version that is supported by this Solr Field Type.
*
* @return string
* A Solr version string.
*/
public function getMinimumSolrVersion();
/**
* Sets the minimum Solr version that is supported by this Solr Field Type.
*
* @param string $minimum_solr_version
* A Solr version string.
*
* @return self
*/
public function setMinimumSolrVersion($minimum_solr_version);
/**
* Gets the Solr Entity name.
*
* @return string
* The Solr Entity name.
*/
public function getName() : string;
/**
* Gets the identifier that describes Solr Entity's purpose.
*
* @return string
* The Solr Entity puprpose ID.
*/
public function getPurposeId() : string;
/**
* Gets the Solr Entity definition as XML fragment.
*
* The XML format is used as part of a solrconfig.xml.
*
* @param bool $add_comment
* Wether to add a comment to the XML or not to explain the purpose of this
* Solr Entity.
*
* @return string
* The Solr RequestHandler definition as XML.
*/
public function getAsXml(bool $add_comment = TRUE) : string;
/**
* Indicates if a Config Entity is recommended to be used.
*
* @return bool
*/
public function isRecommended() : bool;
}
Interfaces
Name | Description |
---|---|
SolrConfigInterface | Provides an interface defining a Solr Config entity. |