Constants - main - drupal

Primary tabs

Title Deprecated File name Summary Direct uses Strings
DRUPAL_DISABLED

in drupal:11.3.0 and is removed from drupal:13.0.0. Instead, use the enums provided by the relevant modules.

core/modules/system/system.module Disabled option on forms and settings.
DRUPAL_OPTIONAL

in drupal:11.3.0 and is removed from drupal:13.0.0. Instead, use the enums provided by the relevant modules.

core/modules/system/system.module Optional option on forms and settings.
DRUPAL_REQUIRED

in drupal:11.3.0 and is removed from drupal:13.0.0. Instead, use the enums provided by the relevant modules.

core/modules/system/system.module Required option on forms and settings.
IMAGE_DERIVATIVE_TOKEN core/modules/image/image.module The name of the query parameter for image derivative tokens.
JSONAPI_FILTER_AMONG_ALL

in drupal:11.3.0 and is removed from drupal:13.0.0. Use \Drupal\jsonapi\JsonApiFilter::AMONG_ALL instead.

core/modules/jsonapi/jsonapi.module Array key for denoting type-based filtering access.
JSONAPI_FILTER_AMONG_ENABLED

in drupal:11.3.0 and is removed from drupal:13.0.0. Use \Drupal\jsonapi\JsonApiFilter::AMONG_ENABLED instead.

core/modules/jsonapi/jsonapi.module Array key for denoting type-based enabled-only filtering access.
JSONAPI_FILTER_AMONG_OWN

in drupal:11.3.0 and is removed from drupal:13.0.0. Use \Drupal\jsonapi\JsonApiFilter::AMONG_OWN instead.

core/modules/jsonapi/jsonapi.module Array key for denoting type-based owned-only filtering access.
JSONAPI_FILTER_AMONG_PUBLISHED

in drupal:11.3.0 and is removed from drupal:13.0.0. Use \Drupal\jsonapi\JsonApiFilter::AMONG_PUBLISHED instead.

core/modules/jsonapi/jsonapi.module Array key for denoting type-based published-only filtering access.
LOCALE_CUSTOMIZED core/modules/locale/locale.module Flag for locally customized interface translation.
LOCALE_JS_OBJECT core/modules/locale/locale.module Regular expression pattern used to match simple JS object literal.
LOCALE_JS_OBJECT_CONTEXT core/modules/locale/locale.module Regular expression to match an object containing a key 'context'.
LOCALE_JS_STRING core/modules/locale/locale.module Regular expression pattern used to localize JavaScript strings.
LOCALE_NOT_CUSTOMIZED core/modules/locale/locale.module Flag for locally not customized interface translation.
LOCALE_TRANSLATION_CURRENT core/modules/locale/locale.module Translation source is the current translation.
LOCALE_TRANSLATION_DEFAULT_SERVER_PATTERN

in drupal:11.2.0 and is removed from drupal:12.0.0. Use \Drupal::TRANSLATION_DEFAULT_SERVER_PATTERN instead.

core/modules/locale/locale.module Default location of gettext file on the translation server.
LOCALE_TRANSLATION_LOCAL core/modules/locale/locale.module Translation source is a local file.
LOCALE_TRANSLATION_OVERWRITE_ALL core/modules/locale/locale.module UI option for override of existing translations. Override any translation.
LOCALE_TRANSLATION_OVERWRITE_NONE core/modules/locale/locale.module UI option for override of existing translations.
LOCALE_TRANSLATION_OVERWRITE_NON_CUSTOMIZED core/modules/locale/locale.module UI option for override of existing translations.
LOCALE_TRANSLATION_REMOTE core/modules/locale/locale.module Translation source is a remote file.
LOCALE_TRANSLATION_SOURCE_COMPARE_EQ

in drupal:11.4.0 and is removed from drupal:13.0.0. There is no replacement.

core/modules/locale/locale.translation.inc Comparison result of source files timestamps.
LOCALE_TRANSLATION_SOURCE_COMPARE_GT

in drupal:11.4.0 and is removed from drupal:13.0.0. There is no replacement.

core/modules/locale/locale.translation.inc Comparison result of source files timestamps.
LOCALE_TRANSLATION_SOURCE_COMPARE_LT

in drupal:11.4.0 and is removed from drupal:13.0.0. There is no replacement.

core/modules/locale/locale.translation.inc Comparison result of source files timestamps.
LOCALE_TRANSLATION_STATUS_TTL core/modules/locale/locale.module The number of seconds the translations status entry should be considered.
LOCALE_TRANSLATION_USE_SOURCE_LOCAL core/modules/locale/locale.module Translation update mode: Use local files only.
LOCALE_TRANSLATION_USE_SOURCE_REMOTE_AND_LOCAL core/modules/locale/locale.module Translation update mode: Use both remote and local files.
MAINTENANCE_MODE core/install.php Global flag to indicate the site is in installation mode.
MODULE_AUTOLOAD_TEST_CONSTANT core/modules/system/tests/modules/module_autoload_test/module_autoload_test.module
REGIONS_ALL core/modules/system/system.module Return all regions.
REGIONS_VISIBLE core/modules/system/system.module Return only visible regions.

Other projects


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