Newscoop\Services\ListUserService::getActiveUsers PHP Method

getActiveUsers() public method

List active users
public getActiveUsers ( $countOnly = false, $page = 1, $limit = 8, $editors = [] ) : array
return array
    public function getActiveUsers($countOnly = false, $page = 1, $limit = 8, $editors = array())
    {
        $offset = ($page - 1) * $limit;
        $result = $this->getRepository()->findActiveUsers($countOnly, $offset, $limit, $editors);
        if ($countOnly) {
            return $result;
        }
        return $result;
    }