public static function Enum::search in Drupal driver for SQL Server and SQL Azure 8
Return key for value
Parameters
$value:
Return value
mixed
1 call to Enum::search()
- Enum::getKey in drivers/
lib/ Drupal/ Driver/ Database/ sqlsrv/ Enum.php - Returns the enum key (i.e. the constant name).
File
- drivers/
lib/ Drupal/ Driver/ Database/ sqlsrv/ Enum.php, line 126
Class
- Enum
- Base Enum class
Namespace
Drupal\Driver\Database\sqlsrvCode
public static function search($value) {
return array_search($value, self::toArray(), true);
}