private function addSummaryData()
{
$framework = false;
$modelCount = '0';
if (isset($GLOBALS['TL_DEBUG'])) {
$framework = true;
$modelCount = Registry::getInstance()->count();
}
$this->data['summary'] = ['version' => $this->getContaoVersion(), 'framework' => $framework, 'models' => $modelCount, 'frontend' => isset($GLOBALS['objPage']), 'preview' => defined('BE_USER_LOGGED_IN') && true === BE_USER_LOGGED_IN, 'layout' => $this->getLayoutName(), 'template' => $this->getTemplateName()];
}