function InstallerRedirectTrait::isCli
Same name in other branches
- 8.9.x core/lib/Drupal/Core/Installer/InstallerRedirectTrait.php \Drupal\Core\Installer\InstallerRedirectTrait::isCli()
- 10 core/lib/Drupal/Core/Installer/InstallerRedirectTrait.php \Drupal\Core\Installer\InstallerRedirectTrait::isCli()
- 11.x core/lib/Drupal/Core/Installer/InstallerRedirectTrait.php \Drupal\Core\Installer\InstallerRedirectTrait::isCli()
Returns whether the current PHP process runs on CLI.
Return value
bool
1 call to InstallerRedirectTrait::isCli()
- InstallerRedirectTrait::shouldRedirectToInstaller in core/
lib/ Drupal/ Core/ Installer/ InstallerRedirectTrait.php - Determines if an exception handler should redirect to the installer.
File
-
core/
lib/ Drupal/ Core/ Installer/ InstallerRedirectTrait.php, line 22
Class
- InstallerRedirectTrait
- Provides methods for checking if Drupal is already installed.
Namespace
Drupal\Core\InstallerCode
protected function isCli() {
return PHP_SAPI === 'cli';
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.