You are here

public static function Enum::isValid in Drupal driver for SQL Server and SQL Azure 8.2

Check if is valid enum value

Parameters

$value:

Return value

bool

1 call to Enum::isValid()
Enum::__construct in drivers/lib/Drupal/Driver/Database/sqlsrv/Component/Enum.php
Creates a new value of some type

File

drivers/lib/Drupal/Driver/Database/sqlsrv/Component/Enum.php, line 116

Class

Enum
Enum class.

Namespace

Drupal\Driver\Database\sqlsrv\Component

Code

public static function isValid($value) {
  return in_array($value, self::toArray(), true);
}