private function BlockerSettingsForm::cookieValueOperators in Cookie Content Blocker 8
Returns a list of allowed cookie value operator options.
Return value
array The cookie value operators.
1 call to BlockerSettingsForm::cookieValueOperators()
- BlockerSettingsForm::cookieFormContainer in src/
Form/ BlockerSettingsForm.php - Create a container to configure cookie settings.
File
- src/
Form/ BlockerSettingsForm.php, line 151
Class
- BlockerSettingsForm
- Form builder to manage settings related to the Cookie content blocker.
Namespace
Drupal\cookie_content_blocker\FormCode
private function cookieValueOperators() : array {
return [
'===' => $this
->t('Equals'),
'>' => $this
->t('Greater than'),
'<' => $this
->t('Less than'),
'c' => $this
->t('Contains'),
'!c' => $this
->t('Not contains'),
'e' => $this
->t('Exists'),
'!e' => $this
->t('Not exists'),
];
}