AdminResources::SUPERADMINISTRATOR, ); foreach (ProfileQuery::create()->find() as $profile) { $profileList[$profile->getId()] = $profile->getCode(); } return $profileList; } } // ProfileQuery