You are here

public function ForcePasswordChangeMapper::getLastChangeForRole in Force Password Change 8

Same name and namespace in other branches
  1. 2.0.x src/Mapper/ForcePasswordChangeMapper.php \Drupal\force_password_change\Mapper\ForcePasswordChangeMapper::getLastChangeForRole()

*

Overrides ForcePasswordChangeMapperInterface::getLastChangeForRole

File

src/Mapper/ForcePasswordChangeMapper.php, line 66

Class

ForcePasswordChangeMapper

Namespace

Drupal\force_password_change\Mapper

Code

public function getLastChangeForRole($rid) {
  return $this->connection
    ->query('SELECT last_force FROM {force_password_change_roles} WHERE rid = :rid', [
    ':rid' => $rid,
  ])
    ->fetchField();
}