'danger', 'warning' => 'warning', 'info' => 'info', ]; $navLinks = []; $tabContents = []; foreach ($settingsProvider as $settingTitle => $settingContent) { $navLinks[] = h($settingTitle); $tabContents[] = $this->element('Settings/category', [ 'settings' => $settingContent, 'includeScrollspy' => true, ]); } array_unshift($navLinks, __('Settings Diagnostic')); $notice = $this->element('Settings/notice', [ 'variantFromSeverity' => $variantFromSeverity, 'notices' => $notices, ]); array_unshift($tabContents, $notice); ?>