You are here

public function Drupal7Backend::role_roleExists in Configuration Management 7.3

Overrides BackendInterface::role_roleExists

File

src/Backends/Drupal7Backend.php, line 313

Class

Drupal7Backend

Namespace

Configuration\Backends

Code

public function role_roleExists($name) {
  return db_query("SELECT rid\n                     FROM {role}\n                     WHERE machine_name = :name", array(
    ':name' => $name,
  ))
    ->fetchField();
}