You are here

public function ForcePasswordChangeMapper::getUserCreatedTime 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::getUserCreatedTime()

*

Overrides ForcePasswordChangeMapperInterface::getUserCreatedTime

File

src/Mapper/ForcePasswordChangeMapper.php, line 39

Class

ForcePasswordChangeMapper

Namespace

Drupal\force_password_change\Mapper

Code

public function getUserCreatedTime($uid) {
  return $this->connection
    ->select('users_field_data', 'ufd')
    ->fields('ufd', [
    'created',
  ])
    ->condition('ufd.uid', $uid)
    ->execute()
    ->fetchField();
}