You are here

Constants in Drupal 8

Primary tabs

Namesort descending Location Description Direct uses Strings
AGGREGATOR_CLEAR_NEVER Deprecated core/modules/aggregator/aggregator.module Denotes that a feed's items should never expire.
COMMENT_ANONYMOUS_MAYNOT_CONTACT Deprecated core/modules/comment/comment.module Anonymous posters cannot enter their contact information.
COMMENT_ANONYMOUS_MAY_CONTACT Deprecated core/modules/comment/comment.module Anonymous posters may leave their contact information.
COMMENT_ANONYMOUS_MUST_CONTACT Deprecated core/modules/comment/comment.module Anonymous posters are required to leave their contact information.
COMMENT_NEW_LIMIT core/modules/comment/comment.module The time cutoff for comments marked as read for entity types other node. 1 1
CONFIG_ACTIVE_DIRECTORY Deprecated core/includes/bootstrap.inc $config_directories key for active directory. 2
CONFIG_STAGING_DIRECTORY Deprecated core/includes/bootstrap.inc $config_directories key for staging directory. 1
CONFIG_SYNC_DIRECTORY Deprecated core/includes/bootstrap.inc $config_directories key for sync directory. 4
CSS_AGGREGATE_DEFAULT core/includes/common.inc The default aggregation group for CSS files added to the page. 2 2
CSS_AGGREGATE_THEME core/includes/common.inc The default aggregation group for theme CSS files added to the page. 1 1
CSS_BASE core/includes/common.inc The default weight for CSS rules that style HTML elements ("base" styles). 1
CSS_COMPONENT core/includes/common.inc The default weight for CSS rules that style design components (and their associated states and themes.) 1
CSS_LAYOUT core/includes/common.inc The default weight for CSS rules that layout a page. 1
CSS_STATE core/includes/common.inc The default weight for CSS rules that style states and are not included with components. 1
CSS_THEME core/includes/common.inc The default weight for CSS rules that style themes and are not included with components. 1
DATETIME_DATETIME_STORAGE_FORMAT Deprecated core/modules/datetime/datetime.module Defines the format that date and time should be stored in.
DATETIME_DATE_STORAGE_FORMAT Deprecated core/modules/datetime/datetime.module Defines the format that dates should be stored in.
DATETIME_STORAGE_TIMEZONE Deprecated core/modules/datetime/datetime.module Defines the timezone that dates should be stored in.
DRUPAL_ANONYMOUS_RID Deprecated core/includes/bootstrap.inc Role ID for anonymous users; should match what's in the "role" table.
DRUPAL_AUTHENTICATED_RID Deprecated core/includes/bootstrap.inc Role ID for authenticated users; should match what's in the "role" table.
DRUPAL_DISABLED core/modules/system/system.module Disabled option on forms and settings 28
DRUPAL_EXTENSION_NAME_MAX_LENGTH core/includes/bootstrap.inc The maximum number of characters in a module or theme name. 6
DRUPAL_MINIMUM_PHP core/includes/bootstrap.inc Minimum allowed version of PHP. 3 4
DRUPAL_MINIMUM_PHP_MEMORY_LIMIT core/includes/bootstrap.inc Minimum recommended value of PHP memory_limit. 1
DRUPAL_MINIMUM_SUPPORTED_PHP core/includes/bootstrap.inc Minimum supported version of PHP. 5
DRUPAL_OPTIONAL core/modules/system/system.module Optional option on forms and settings 26
DRUPAL_PHP_FUNCTION_PATTERN Deprecated core/includes/bootstrap.inc Regular expression to match PHP function names.
DRUPAL_RECOMMENDED_PHP core/includes/bootstrap.inc Minimum recommended version of PHP. 1
DRUPAL_REQUIRED core/modules/system/system.module Required option on forms and settings 17
DRUPAL_ROOT core/includes/bootstrap.inc Defines the root directory of the Drupal installation. 52 2
DRUPAL_USER_TIMEZONE_DEFAULT Deprecated core/modules/system/system.module New users will be set to the default time zone at registration.
DRUPAL_USER_TIMEZONE_EMPTY Deprecated core/modules/system/system.module New users will get an empty time zone at registration.
DRUPAL_USER_TIMEZONE_SELECT Deprecated core/modules/system/system.module New users will select their own timezone at registration.
ENTITY_TEST_TYPES_MULTILINGUAL core/modules/system/tests/modules/entity_test/entity_test.module Filter that limits test entity list to multilingual ones. 6
ENTITY_TEST_TYPES_REVISABLE core/modules/system/tests/modules/entity_test/entity_test.module Filter that limits test entity list to revisable ones. 3
ENTITY_TEST_TYPES_ROUTING core/modules/system/tests/modules/entity_test/entity_test.module Filter that limits test entity list to routeable ones. 3
ERROR_REPORTING_DISPLAY_ALL core/includes/bootstrap.inc Error reporting level: display all messages. 3
ERROR_REPORTING_DISPLAY_SOME core/includes/bootstrap.inc Error reporting level: display errors and warnings. 1
ERROR_REPORTING_DISPLAY_VERBOSE core/includes/bootstrap.inc Error reporting level: display all messages, plus backtrace information. 7
ERROR_REPORTING_HIDE core/includes/bootstrap.inc Error reporting level: display no errors. 2
FILE_CHMOD_DIRECTORY Deprecated core/includes/file.inc Default mode for new directories.
FILE_CHMOD_FILE Deprecated core/includes/file.inc Default mode for new files.
FILE_CREATE_DIRECTORY Deprecated core/includes/file.inc Flag used to create a directory if not present.
FILE_EXECUTABLE core/includes/install.inc File permission check -- File is executable. 4
FILE_EXIST core/includes/install.inc File permission check -- File exists. 7
FILE_EXISTS_ERROR Deprecated core/includes/file.inc Flag for dealing with existing files: Do nothing and return FALSE.
FILE_EXISTS_RENAME Deprecated core/includes/file.inc Flag for dealing with existing files: Appends number until name is unique.
FILE_EXISTS_REPLACE Deprecated core/includes/file.inc Flag for dealing with existing files: Replace the existing file.
FILE_INSECURE_EXTENSION_REGEX core/modules/file/file.module The regex pattern used when checking for insecure file types. 4 1
FILE_MODIFY_PERMISSIONS Deprecated core/includes/file.inc Flag used to indicate file permissions may be changed.

Pages

Other projects