You are here

interface ContentHubRequirementInterface in Acquia Content Hub 8

Provides an interface defining a Content Hub Requirement plugin.

Hierarchy

Expanded class hierarchy of ContentHubRequirementInterface

All classes that implement ContentHubRequirementInterface

File

acquia_contenthub_diagnostic/src/ContentHubRequirementInterface.php, line 8

Namespace

Drupal\acquia_contenthub_diagnostic
View source
interface ContentHubRequirementInterface {

  /**
   * Returns the name of the requirement.
   *
   * @return string
   *   The name of the requirement.
   */
  public function title();

  /**
   * Returns the current value.
   *
   * @return string
   *   The current value.
   */
  public function value();

  /**
   * Returns the description of the requirement/status.
   *
   * @return string
   *   The description of the requirement/status.
   */
  public function description();

  /**
   * Returns the requirement's result/severity level.
   *
   * @return int
   *   The requirement status code:
   *     - REQUIREMENT_INFO: For info only.
   *     - REQUIREMENT_OK: The requirement is satisfied.
   *     - REQUIREMENT_WARNING: The requirement failed with a warning.
   *     - REQUIREMENT_ERROR: The requirement failed with an error.
   */
  public function severity();

}

Members

Namesort descending Modifiers Type Description Overrides
ContentHubRequirementInterface::description public function Returns the description of the requirement/status. 1
ContentHubRequirementInterface::severity public function Returns the requirement's result/severity level. 1
ContentHubRequirementInterface::title public function Returns the name of the requirement. 1
ContentHubRequirementInterface::value public function Returns the current value. 1