You are here

public function ViewsQuerySubstitutionsEvent::getSubstitutions in Hook Event Dispatcher 8.2

Same name and namespace in other branches
  1. 3.x modules/views_event_dispatcher/src/Event/Views/ViewsQuerySubstitutionsEvent.php \Drupal\views_event_dispatcher\Event\Views\ViewsQuerySubstitutionsEvent::getSubstitutions()

Get the query substitutions.

Return value

array An associative array where each key is a string to be replaced, and the corresponding value is its replacement. The strings to replace are often surrounded with '***', as illustrated in the example implementation, to avoid collisions with other values in the query.

File

modules/views_event_dispatcher/src/Event/Views/ViewsQuerySubstitutionsEvent.php, line 28

Class

ViewsQuerySubstitutionsEvent
Class ViewsQuerySubstitutionEvent.

Namespace

Drupal\views_event_dispatcher\Event\Views

Code

public function &getSubstitutions() : array {
  return $this->substitutions;
}