/** * Check if a config group is public * @param Entity $entity * @return boolean */ protected function isConfigPublic(Config $entity) { // Config that is unloaded is treated as public. if (!$entity->getId()) { return true; } if (in_array($entity->getId(), $this->public_groups)) { return true; } return false; }
/** * Check if a config group is read only * @param Entity $entity * @return boolean */ protected function isConfigReadOnly(Config $entity) { // Config that is unloaded is treated as writable. if (!$entity->getId()) { return false; } if (in_array($entity->getId(), $this->readonly_groups)) { return true; } return false; }