Drupal::RECOMMENDED_PHP
Same name in other branches
- 10 core/lib/Drupal.php \Drupal::RECOMMENDED_PHP
- 11.x core/lib/Drupal.php \Drupal::RECOMMENDED_PHP
Minimum recommended version of PHP.
Sites installing Drupal on PHP versions lower than this will see a warning message, but Drupal can still be installed. Used for (e.g.) PHP versions that have reached their EOL or will in the near future.
2 uses of Drupal::RECOMMENDED_PHP
- PhpRequirementTest::testStatusPage in core/
modules/ system/ tests/ src/ Functional/ System/ PhpRequirementTest.php - Tests status report messages regarding the PHP version.
- system_requirements in core/
modules/ system/ system.install - Implements hook_requirements().
File
-
core/
lib/ Drupal.php, line 144
Class
- Drupal
- Static Service Container wrapper.
Code
const RECOMMENDED_PHP = '8.1.6';
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.