2 if (!defined('CIVI_SETUP')) {
3 exit("Installation plugins must only be loaded by the installer.\n");
6 \Civi\Setup
::dispatcher()
7 ->addListener('civi.setupui.boot', function (\Civi\Setup\UI\Event\UIBootEvent
$e) {
8 \Civi\Setup
::log()->info(sprintf('[%s] Register blocks', basename(__FILE__
)));
11 * @var \Civi\Setup\UI\SetupController $ctrl
13 $ctrl = $e->getCtrl();
15 $ctrl->blocks
['requirements'] = array(
17 'file' => __DIR__
. DIRECTORY_SEPARATOR
. 'requirements.tpl.php',
18 'class' => 'if-problems',
20 'severity_labels' => array(
22 'warning' => ts('Warning'),
23 'error' => ts('Error'),
25 'section_labels' => array(
26 'database' => ts('Database'),
27 'system' => ts('System'),
30 }, \Civi\Setup
::PRIORITY_PREPARE
);