You are here

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

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/Enum.php
Creates a new value of some type

File

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

Class

Enum
Base Enum class

Namespace

Drupal\Driver\Database\sqlsrv

Code

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