/** * Get a list of user types. * * @return array|false */ protected function getUserTypes() { $types = $this->users->getUserTypes(); $strings = []; foreach ($types as $type) { if (!empty($type)) { $strings[$type] = Lang::get('c::user.usertypes-' . $type); } } return $strings; }