/** * Returns the static role name * * @param string $roleKey * * @return null|string */ public function staticRoleTitle($roleKey) { $role = $this->roleCollection->getRoleByKey($roleKey); return null !== $role ? $role->getTitle() : null; }