public function ViewsQuerySubstitutionsEvent::getSubstitutions in Hook Event Dispatcher 3.x
Same name and namespace in other branches
- 8.2 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\ViewsCode
public function &getSubstitutions() : array {
return $this->substitutions;
}