public function SolrConnectorPluginBase::setConfiguration in Search API Solr 8.3
Same name and namespace in other branches
- 4.x 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 ConfigurablePluginBase::setConfiguration
File
- src/
SolrConnector/ SolrConnectorPluginBase.php, line 114
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'];
parent::setConfiguration($configuration);
}