public function ViewsQuerySubstitutionsEvent::setSubstitutions in Hook Event Dispatcher 8
Set the query substitutions.
Parameters
array $substitutions: 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
- src/
Event/ Views/ ViewsQuerySubstitutionsEvent.php, line 30
Class
- ViewsQuerySubstitutionsEvent
- Class ViewsQuerySubstitutionEvent.
Namespace
Drupal\hook_event_dispatcher\Event\ViewsCode
public function setSubstitutions(array $substitutions) {
$this->substitutions = $substitutions;
}