Skip to content
Snippets Groups Projects
Commit b55f3ed4 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #2300697 by joshi.rohit100: Remove drupal_is_cli() as It is deprecated.

parent 30c2afed
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -1661,16 +1661,6 @@ function drupal_static_reset($name = NULL) { ...@@ -1661,16 +1661,6 @@ function drupal_static_reset($name = NULL) {
drupal_static($name, NULL, TRUE); drupal_static($name, NULL, TRUE);
} }
/**
* Detects whether the current script is running in a command-line environment.
*
* @deprecated in Drupal 8.x-dev, will be removed before Drupal 8.0.
* Check the PHP_SAPI value directly instead.
*/
function drupal_is_cli() {
return PHP_SAPI === 'cli';
}
/** /**
* Formats text for emphasized display in a placeholder inside a sentence. * Formats text for emphasized display in a placeholder inside a sentence.
* *
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment