public static function OperatorsHelper::getOperatorOptions in Entity Share 8.3
Same name and namespace in other branches
- 8 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 18
Class
- OperatorsHelper
- Defines the Operators helper class.
Namespace
Drupal\entity_share_serverCode
public static function getOperatorOptions() {
return [
'=' => '=',
'<>' => '<>',
'<' => '<',
'<=' => '<=',
'>' => '>',
'>=' => '>=',
'STARTS_WITH' => 'STARTS_WITH',
'CONTAINS' => 'CONTAINS',
'ENDS_WITH' => 'ENDS_WITH',
'IN' => 'IN',
'NOT IN' => 'NOT IN',
'BETWEEN' => 'BETWEEN',
'NOT BETWEEN' => 'NOT BETWEEN',
'IS NULL' => 'IS NULL',
'IS NOT NULL' => 'IS NOT NULL',
];
}