You are here

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

Returns the enum key (i.e. the constant name).

Return value

mixed

File

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

Class

Enum
Base Enum class

Namespace

Drupal\Driver\Database\sqlsrv

Code

public function getKey() {
  return self::search($this->value);
}