You are here

protected function SearchApiElasticsearchAbstractService::getOption in Search API Elasticsearch 7

Helper function. Return a server option.

2 calls to SearchApiElasticsearchAbstractService::getOption()
SearchApiElasticsearchAbstractService::getAggregationLimit in includes/SearchApiElasticsearchAbstractService.inc
Helper function that return facet limits.
SearchApiElasticsearchAbstractService::viewSettingElement in includes/SearchApiElasticsearchAbstractService.inc
Helper function. Display a setting element.

File

includes/SearchApiElasticsearchAbstractService.inc, line 543
Provides a Elasticsearch-based service class for the Search API.

Class

SearchApiElasticsearchAbstractService
Elasticsearch service abstract class.

Code

protected function getOption($option, $default = NULL) {
  $options = $this
    ->getOptions();
  return isset($options[$option]) ? $options[$option] : $default;
}