public function onSaveType($value, $dc)
    {
        if ('root' !== $value && 'folder' !== $value && $dc->activeRecord->pid === 0) {
            throw new \Exception($GLOBALS['TL_LANG']['ERR']['topLevelRoot']);
        }

        return $value;
    }