public function SolrConnectorPluginBase::setConfiguration in Search API Solr 4.x
Same name and namespace in other branches
- 8.3 src/SolrConnector/SolrConnectorPluginBase.php \Drupal\search_api_solr\SolrConnector\SolrConnectorPluginBase::setConfiguration()
Sets the configuration for this plugin instance.
Parameters
array $configuration: An associative array containing the plugin's configuration.
Overrides ConfigurableInterface::setConfiguration
1 call to SolrConnectorPluginBase::setConfiguration()
- StandardSolrCloudConnector::setConfiguration in src/
Plugin/ SolrConnector/ StandardSolrCloudConnector.php - Sets the configuration for this plugin instance.
1 method overrides SolrConnectorPluginBase::setConfiguration()
- StandardSolrCloudConnector::setConfiguration in src/
Plugin/ SolrConnector/ StandardSolrCloudConnector.php - Sets the configuration for this plugin instance.
File
- src/
SolrConnector/ SolrConnectorPluginBase.php, line 115
Class
- SolrConnectorPluginBase
- Defines a base class for Solr connector plugins.
Namespace
Drupal\search_api_solr\SolrConnectorCode
public function setConfiguration(array $configuration) {
$configuration['port'] = (int) $configuration['port'];
$configuration['timeout'] = (int) $configuration['timeout'];
$configuration[self::INDEX_TIMEOUT] = (int) $configuration[self::INDEX_TIMEOUT];
$configuration[self::OPTIMIZE_TIMEOUT] = (int) $configuration[self::OPTIMIZE_TIMEOUT];
$configuration[self::FINALIZE_TIMEOUT] = (int) $configuration[self::FINALIZE_TIMEOUT];
$configuration['commit_within'] = (int) $configuration['commit_within'];
$configuration['jmx'] = (bool) $configuration['jmx'];
$configuration['jts'] = (bool) $configuration['jts'];
$configuration['skip_schema_check'] = (bool) $configuration['skip_schema_check'];
parent::setConfiguration($configuration);
}