You are here

ProdCheck.php in Production check & Production monitor 8

Namespace

Drupal\prod_check

File

src/ProdCheck.php
View source
<?php

namespace Drupal\prod_check;


/**
 * Utility class for the prod check module
 */
class ProdCheck {

  /**
   * Our own definition of the core requirements states. These can be found in
   * includes/install.inc and are only available in hook_install(). That's why
   * we redefine them here (yes, it's double!). It's nicer than including the
   * install.inc file.
   */

  /**
   * Requirement severity -- Informational message only.
   */
  const REQUIREMENT_INFO = -1;

  /**
   * Requirement severity -- Requirement successfully met.
   */
  const REQUIREMENT_OK = 0;

  /**
   * Requirement severity -- Warning condition; proceed but flag warning.
   */
  const REQUIREMENT_WARNING = 1;

  /**
   * Requirement severity -- Error condition; abort installation.
   */
  const REQUIREMENT_ERROR = 2;

}

Classes

Namesort descending Description
ProdCheck Utility class for the prod check module