You are here

class ProdCheck in Production check & Production monitor 8

Same name in this branch
  1. 8 src/ProdCheck.php \Drupal\prod_check\ProdCheck
  2. 8 src/Annotation/ProdCheck.php \Drupal\prod_check\Annotation\ProdCheck
  3. 8 src/Entity/ProdCheck.php \Drupal\prod_check\Entity\ProdCheck

Utility class for the prod check module

Hierarchy

Expanded class hierarchy of ProdCheck

3 files declare their use of ProdCheck
ProdCheckBase.php in src/Plugin/ProdCheck/ProdCheckBase.php
ProdCheckProcessorBase.php in src/Plugin/ProdCheckProcessor/ProdCheckProcessorBase.php
prod_check.module in ./prod_check.module
Module file for the prod check module

File

src/ProdCheck.php, line 8

Namespace

Drupal\prod_check
View source
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;

}

Members

Namesort descending Modifiers Type Description Overrides
ProdCheck::REQUIREMENT_ERROR constant Requirement severity -- Error condition; abort installation.
ProdCheck::REQUIREMENT_INFO constant Requirement severity -- Informational message only.
ProdCheck::REQUIREMENT_OK constant Requirement severity -- Requirement successfully met.
ProdCheck::REQUIREMENT_WARNING constant Requirement severity -- Warning condition; proceed but flag warning.