You are here

public function SearchApiStandard::defaultActions in Search API 8

Provide a list of default behaviors for this argument if the argument is not present.

Override this method to provide additional (or fewer) default behaviors.

Overrides ArgumentPluginBase::defaultActions

File

src/Plugin/views/argument/SearchApiStandard.php, line 42

Class

SearchApiStandard
Defines a contextual filter for applying Search API conditions.

Namespace

Drupal\search_api\Plugin\views\argument

Code

public function defaultActions($which = NULL) {
  $defaults = parent::defaultActions();
  unset($defaults['summary']);
  if ($which) {
    return $defaults[$which] ?? NULL;
  }
  return $defaults;
}