public function checkRootType($varValue, DataContainer $dc) { if ($varValue != 'root' && $dc->activeRecord->pid == 0) { throw new Exception($GLOBALS['TL_LANG']['ERR']['topLevelRoot']); } return $varValue; }