public static function WebformElementStates::getTriggerOptions in Webform 6.x
Same name and namespace in other branches
- 8.5 src/Element/WebformElementStates.php \Drupal\webform\Element\WebformElementStates::getTriggerOptions()
Get an associative array of translated trigger options.
Return value
array An associative array of translated trigger options.
1 call to WebformElementStates::getTriggerOptions()
- WebformElementStates::processWebformStates in src/
Element/ WebformElementStates.php - Expand an email confirm field into two HTML5 email elements.
File
- src/
Element/ WebformElementStates.php, line 1092
Class
- WebformElementStates
- Provides a webform element to edit an element's #states.
Namespace
Drupal\webform\ElementCode
public static function getTriggerOptions() {
return [
'empty' => t('Empty'),
'filled' => t('Filled'),
'checked' => t('Checked'),
'unchecked' => t('Unchecked'),
'value' => t('Value is'),
'!value' => t('Value is not'),
'pattern' => t('Pattern'),
'!pattern' => t('Not Pattern'),
'less' => t('Less than'),
'less_equal' => t('Less than/Equal to'),
'greater' => t('Greater than'),
'greater_equal' => t('Greater than/Equal to'),
'between' => t('Between'),
'!between' => t('Not between'),
];
}