public function ForcePasswordChangeMapper::getUserCreatedTime in Force Password Change 8
Same name and namespace in other branches
- 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
Namespace
Drupal\force_password_change\MapperCode
public function getUserCreatedTime($uid) {
return $this->connection
->select('users_field_data', 'ufd')
->fields('ufd', [
'created',
])
->condition('ufd.uid', $uid)
->execute()
->fetchField();
}