public static function OperatorsHelper::getOperatorOptions in Entity Share 8
Same name and namespace in other branches
- 8.3 modules/entity_share_server/src/OperatorsHelper.php \Drupal\entity_share_server\OperatorsHelper::getOperatorOptions()
- 8.2 modules/entity_share_server/src/OperatorsHelper.php \Drupal\entity_share_server\OperatorsHelper::getOperatorOptions()
Helper function to get the operator options.
Return value
array An array of options.
2 calls to OperatorsHelper::getOperatorOptions()
- FilterAddForm::form in modules/
entity_share_server/ src/ Form/ FilterAddForm.php - Gets the actual form array to be built.
- FilterEditForm::form in modules/
entity_share_server/ src/ Form/ FilterEditForm.php - Gets the actual form array to be built.
File
- modules/
entity_share_server/ src/ OperatorsHelper.php, line 16
Class
- OperatorsHelper
- Defines the Operators helper class.
Namespace
Drupal\entity_share_serverCode
public static function getOperatorOptions() {
return [
'=' => '=',
'<' => '<',
'>' => '>',
'<>' => '<>',
'IN' => 'IN',
'NOT IN' => 'NOT IN',
'IS NULL' => 'IS NULL',
'IS NOT NULL' => 'IS NOT NULL',
'CONTAINS' => 'CONTAINS',
'BETWEEN' => 'BETWEEN',
];
}