You are here

protected function SearchApiDate::abort in Search API 8

Aborts the associated query due to an illegal argument.

See also

\Drupal\search_api\Plugin\views\query\SearchApiQuery::abort()

1 call to SearchApiDate::abort()
SearchApiDate::query in src/Plugin/views/argument/SearchApiDate.php
Set up the query for this argument.

File

src/Plugin/views/argument/SearchApiDate.php, line 192

Class

SearchApiDate
Defines a contextual filter for conditions on date fields.

Namespace

Drupal\search_api\Plugin\views\argument

Code

protected function abort() {
  $variables['@field'] = $this->definition['group'] . ': ' . $this->definition['title'];
  $this->query
    ->abort(new FormattableMarkup('Illegal argument passed to @field contextual filter.', $variables));
}