You are here

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

Check if is valid enum key

Parameters

$key:

Return value

bool

File

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

Class

Enum
Base Enum class

Namespace

Drupal\Driver\Database\sqlsrv

Code

public static function isValidKey($key) {
  $array = self::toArray();
  return isset($array[$key]);
}