You are here

public static function OperatorsHelper::getStandAloneOperators in Entity Share 8.3

Same name and namespace in other branches
  1. 8 modules/entity_share_server/src/OperatorsHelper.php \Drupal\entity_share_server\OperatorsHelper::getStandAloneOperators()
  2. 8.2 modules/entity_share_server/src/OperatorsHelper.php \Drupal\entity_share_server\OperatorsHelper::getStandAloneOperators()

Helper function to get the stand alone operators.

Operators that do not require a value to be entered.

Return value

array An array of options.

2 calls to OperatorsHelper::getStandAloneOperators()
FilterAddForm::buildValueElement in modules/entity_share_server/src/Form/FilterAddForm.php
Helper function to generate filter form elements.
FilterEditForm::buildValueElement in modules/entity_share_server/src/Form/FilterEditForm.php
Helper function to generate filter form elements.

File

modules/entity_share_server/src/OperatorsHelper.php, line 46

Class

OperatorsHelper
Defines the Operators helper class.

Namespace

Drupal\entity_share_server

Code

public static function getStandAloneOperators() {
  return [
    'IS NULL' => 'IS NULL',
    'IS NOT NULL' => 'IS NOT NULL',
  ];
}