You are here

public function SearchApiQuery::defineOptions in Search API 8

Information about options for all kinds of purposes will be held here.


'option_name' => array(
 - 'default' => default value,
 - 'contains' => (optional) array of items this contains, with its own
     defaults, etc. If contains is set, the default will be ignored and
     assumed to be array().
 ),

Return value

array Returns the options of this handler/plugin.

Overrides PluginBase::defineOptions

File

src/Plugin/views/query/SearchApiQuery.php, line 361

Class

SearchApiQuery
Defines a Views query class for searching on Search API indexes.

Namespace

Drupal\search_api\Plugin\views\query

Code

public function defineOptions() {
  return parent::defineOptions() + [
    'bypass_access' => [
      'default' => FALSE,
    ],
    'skip_access' => [
      'default' => FALSE,
    ],
    'preserve_facet_query_args' => [
      'default' => FALSE,
    ],
  ];
}