Constants - main - drupal
| 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/ |
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/ |
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/ |
Required option on forms and settings. | ||
| IMAGE_DERIVATIVE_TOKEN | core/ |
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/ |
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/ |
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/ |
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/ |
Array key for denoting type-based published-only filtering access. | ||
| LOCALE_CUSTOMIZED | core/ |
Flag for locally customized interface translation. | |||
| LOCALE_JS_OBJECT | core/ |
Regular expression pattern used to match simple JS object literal. | |||
| LOCALE_JS_OBJECT_CONTEXT | core/ |
Regular expression to match an object containing a key 'context'. | |||
| LOCALE_JS_STRING | core/ |
Regular expression pattern used to localize JavaScript strings. | |||
| LOCALE_NOT_CUSTOMIZED | core/ |
Flag for locally not customized interface translation. | |||
| LOCALE_TRANSLATION_CURRENT | core/ |
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/ |
Default location of gettext file on the translation server. | ||
| LOCALE_TRANSLATION_LOCAL | core/ |
Translation source is a local file. | |||
| LOCALE_TRANSLATION_OVERWRITE_ALL | core/ |
UI option for override of existing translations. Override any translation. | |||
| LOCALE_TRANSLATION_OVERWRITE_NONE | core/ |
UI option for override of existing translations. | |||
| LOCALE_TRANSLATION_OVERWRITE_NON_CUSTOMIZED | core/ |
UI option for override of existing translations. | |||
| LOCALE_TRANSLATION_REMOTE | core/ |
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/ |
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/ |
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/ |
Comparison result of source files timestamps. | ||
| LOCALE_TRANSLATION_STATUS_TTL | core/ |
The number of seconds the translations status entry should be considered. | |||
| LOCALE_TRANSLATION_USE_SOURCE_LOCAL | core/ |
Translation update mode: Use local files only. | |||
| LOCALE_TRANSLATION_USE_SOURCE_REMOTE_AND_LOCAL | core/ |
Translation update mode: Use both remote and local files. | |||
| MAINTENANCE_MODE | core/ |
Global flag to indicate the site is in installation mode. | |||
| MODULE_AUTOLOAD_TEST_CONSTANT | core/ |
||||
| REGIONS_ALL | core/ |
Return all regions. | |||
| REGIONS_VISIBLE | core/ |
Return only visible regions. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.