public function SearchApiElasticsearchConnector::getOption in Elasticsearch Connector 7.5
Same name and namespace in other branches
- 7 modules/elasticsearch_connector_search_api/service.inc \SearchApiElasticsearchConnector::getOption()
- 7.2 modules/elasticsearch_connector_search_api/service.inc \SearchApiElasticsearchConnector::getOption()
Helper function. Return a server option.
4 calls to SearchApiElasticsearchConnector::getOption()
- SearchApiElasticsearchConnector::configurationForm in modules/
elasticsearch_connector_search_api/ service.inc - Overrides configurationForm().
- SearchApiElasticsearchConnector::getCluster in modules/
elasticsearch_connector_search_api/ service.inc - Get the configured cluster; if the cluster is blank, use the default.
- SearchApiElasticsearchConnector::getFacetLimit in modules/
elasticsearch_connector_search_api/ service.inc - Helper function that return facet limits
- SearchApiElasticsearchConnector::viewSettingElement in modules/
elasticsearch_connector_search_api/ service.inc - Helper function. Display a setting element.
File
- modules/
elasticsearch_connector_search_api/ service.inc, line 1193 - Provides a Elasticsearch-based service class for the Search API using Elasticsearch Connector module.
Class
- SearchApiElasticsearchConnector
- Search service class.
Code
public function getOption($option, $default = NULL) {
$options = $this
->getOptions();
return isset($options[$option]) ? $options[$option] : $default;
}