public function ForcePasswordChangeMapper::getActiveUserIds in Force Password Change 2.0.x
Same name and namespace in other branches
- 8 src/Mapper/ForcePasswordChangeMapper.php \Drupal\force_password_change\Mapper\ForcePasswordChangeMapper::getActiveUserIds()
Get a list of User IDs for active user accounts.
Return value
array An array of User IDs for all active users in the system.
Overrides ForcePasswordChangeMapperInterface::getActiveUserIds
File
- src/
Mapper/ ForcePasswordChangeMapper.php, line 31
Class
Namespace
Drupal\force_password_change\MapperCode
public function getActiveUserIds() {
return $this->connection
->query('SELECT uid FROM {users_field_data} WHERE status = :one', [
':one' => 1,
])
->fetchCol();
}