Constants - 9.5.x - drupal

Primary tabs

Title Deprecated File name Summary Direct uses Strings
LOCALE_JS_OBJECT core/modules/locale/locale.module Regular expression pattern used to match simple JS object literal. 1
LOCALE_JS_OBJECT_CONTEXT core/modules/locale/locale.module Regular expression to match an object containing a key 'context'. 1 1
LOCALE_JS_STRING core/modules/locale/locale.module Regular expression pattern used to localize JavaScript strings. 1
LOCALE_NOT_CUSTOMIZED core/modules/locale/locale.module Flag for locally not customized interface translation. 10
LOCALE_TRANSLATION_CURRENT core/modules/locale/locale.module Translation source is the current translation. 6
LOCALE_TRANSLATION_DEFAULT_SERVER_PATTERN core/modules/locale/locale.module Default location of gettext file on the translation server. 1
LOCALE_TRANSLATION_LOCAL core/modules/locale/locale.module Translation source is a local file. 10
LOCALE_TRANSLATION_OVERWRITE_ALL core/modules/locale/locale.module UI option for override of existing translations. Override any translation. 4
LOCALE_TRANSLATION_OVERWRITE_NONE core/modules/locale/locale.module UI option for override of existing translations. 3
LOCALE_TRANSLATION_OVERWRITE_NON_CUSTOMIZED core/modules/locale/locale.module UI option for override of existing translations. 3
LOCALE_TRANSLATION_REMOTE core/modules/locale/locale.module Translation source is a remote file. 8
LOCALE_TRANSLATION_SOURCE_COMPARE_EQ core/modules/locale/locale.translation.inc Comparison result of source files timestamps. 1
LOCALE_TRANSLATION_SOURCE_COMPARE_GT core/modules/locale/locale.translation.inc Comparison result of source files timestamps. 1
LOCALE_TRANSLATION_SOURCE_COMPARE_LT core/modules/locale/locale.translation.inc Comparison result of source files timestamps. 2
LOCALE_TRANSLATION_STATUS_TTL core/modules/locale/locale.module The number of seconds that the translations status entry should be considered. 1
LOCALE_TRANSLATION_USE_SOURCE_LOCAL core/modules/locale/locale.module Translation update mode: Use local files only. 3
LOCALE_TRANSLATION_USE_SOURCE_REMOTE_AND_LOCAL core/modules/locale/locale.module Translation update mode: Use both remote and local files. 5
MAINTENANCE_MODE core/install.php Global flag to indicate the site is in installation mode. 5 20
MAINTENANCE_MODE core/authorize.php Global flag to identify update.php and authorize.php runs. 5 20
MARK_NEW core/includes/theme.inc Mark content as being new. 3
MARK_READ core/includes/theme.inc Mark content as read. 2
MARK_UPDATED core/includes/theme.inc Mark content as being updated. 2
MODULE_AUTOLOAD_TEST_CONSTANT core/modules/system/tests/modules/module_autoload_test/module_autoload_test.module 1 2
PREG_CLASS_CJK

in drupal:9.1.0 and is removed from drupal:10.0.0. Use \Drupal\search\SearchTextProcessorInterface::PREG_CLASS_CJK instead.

core/modules/search/search.module Matches CJK (Chinese, Japanese, Korean) letter-like characters. 1 1
PREG_CLASS_NUMBERS

in drupal:9.1.0 and is removed from drupal:10.0.0. Use \Drupal\search\SearchTextProcessorInterface::PREG_CLASS_NUMBERS instead.

core/modules/search/search.module Matches all 'N' Unicode character classes (numbers) 1
PREG_CLASS_PUNCTUATION

in drupal:9.1.0 and is removed from drupal:10.0.0. Use \Drupal\search\SearchTextProcessorInterface::PREG_CLASS_PUNCTUATION instead.

core/modules/search/search.module Matches all 'P' Unicode character classes (punctuation) 1
REGIONS_ALL core/modules/system/system.module Return all regions. 1
REGIONS_VISIBLE core/modules/system/system.module Return only visible regions. 7
REQUEST_TIME

in drupal:8.3.0 and is removed from drupal:11.0.0. Use \Drupal::time()->getRequestTime();

core/includes/bootstrap.inc Time of the current request in seconds elapsed since the Unix Epoch. 116 29
REQUIREMENT_ERROR core/includes/install.inc Requirement severity -- Error condition; abort installation. 27
REQUIREMENT_INFO core/includes/install.inc Requirement severity -- Informational message only. 11
REQUIREMENT_OK core/includes/install.inc Requirement severity -- Requirement successfully met. 5
REQUIREMENT_WARNING core/includes/install.inc Requirement severity -- Warning condition; proceed but flag warning. 23
RESPONSIVE_PRIORITY_LOW core/includes/theme.inc A responsive table class; only show table cell on wide devices. 8
RESPONSIVE_PRIORITY_MEDIUM core/includes/theme.inc A responsive table class; hide table cell on narrow devices. 13
SAVED_DELETED core/includes/common.inc Return status for saving which deleted an existing item.
SAVED_NEW core/includes/common.inc Return status for saving which involved creating a new item. 23 2
SAVED_UPDATED core/includes/common.inc Return status for saving which involved an update to an existing item. 28 2
SCHEMA_UNINSTALLED

in drupal:9.3.0 and is removed from drupal:10.0.0. Use \Drupal\Core\Update\UpdateHookRegistry::SCHEMA_UNINSTALLED constant instead.

core/includes/schema.inc Indicates that a module has not been installed yet.

Other projects


Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.