You are here

protected static function DataProviderEntity::isMultipleValuOperator in RESTful 7.2

Checks if the operator accepts multiple values.

Parameters

$operator_name: The name of the operator.

Return value

bool TRUE if the operator can interpret multiple values. FALSE otherwise.

File

src/Plugin/resource/DataProvider/DataProviderEntity.php, line 777
Contains \Drupal\restful\Plugin\resource\DataProvider\DataProviderEntity.

Class

DataProviderEntity
Class DataProviderEntity.

Namespace

Drupal\restful\Plugin\resource\DataProvider

Code

protected static function isMultipleValuOperator($operator_name) {
  return in_array(strtoupper($operator_name), array(
    'IN',
    'NOT IN',
    'BETWEEN',
  ));
}