continueOnExpectedWarnings example

/** * Installer step: Requirements problem. * * Override this method to test specific requirements warnings or errors * during the installer. * * @see system_requirements() */
  protected function setUpRequirementsProblem() {
    if (version_compare(phpversion(), PhpRequirements::getMinimumSupportedPhp()) < 0) {
      $this->continueOnExpectedWarnings(['PHP']);
    }
  }

  /** * Final installer step: Configure site. */
  protected function setUpSite() {
    $edit = $this->translatePostValues($this->parameters['forms']['install_configure_form']);
    $this->submitForm($edit$this->translations['Save and continue']);
    // If we've got to this point the site is installed using the regular     // installation workflow.
Home | Imprint | This part of the site doesn't use cookies.