Constants - 8.9.x - drupal

Primary tabs

Title Deprecated File name Summary Direct uses Strings
AGGREGATOR_CLEAR_NEVER

in drupal:8.3.0 and is removed from drupal:9.0.0. Use \Drupal\aggregator\FeedStorageInterface::CLEAR_NEVER instead.

core/modules/aggregator/aggregator.module Denotes that a feed's items should never expire.
COMMENT_ANONYMOUS_MAYNOT_CONTACT

in drupal:8.3.0 and is removed from drupal:9.0.0. Use \Drupal\comment\CommentInterface::ANONYMOUS_MAYNOT_CONTACT instead.

core/modules/comment/comment.module Anonymous posters cannot enter their contact information.
COMMENT_ANONYMOUS_MAY_CONTACT

in drupal:8.3.0 and is removed from drupal:9.0.0. Use \Drupal\comment\CommentInterface::ANONYMOUS_MAY_CONTACT instead.

core/modules/comment/comment.module Anonymous posters may leave their contact information.
COMMENT_ANONYMOUS_MUST_CONTACT

in drupal:8.3.0 and is removed from drupal:9.0.0. Use \Drupal\comment\CommentInterface::ANONYMOUS_MUST_CONTACT instead.

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

in drupal:8.0.0 and is removed from drupal:9.0.0. Drupal core no longer creates an active directory.

core/includes/bootstrap.inc $config_directories key for active directory. 2
CONFIG_STAGING_DIRECTORY

in drupal:8.0.0 and is removed from drupal:9.0.0. The staging directory was renamed to sync.

core/includes/bootstrap.inc $config_directories key for staging directory. 1
CONFIG_SYNC_DIRECTORY

in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Site\Settings::get('config_sync_directory') instead.

core/includes/bootstrap.inc $config_directories key for sync directory. 4 27
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

in drupal:8.5.0 and is removed from drupal:9.0.0. Use \Drupal\datetime\Plugin\Field\FieldType\DateTimeItemInterface::DATETIME_STORAGE_FORMAT instead.

core/modules/datetime/datetime.module Defines the format that date and time should be stored in.
DATETIME_DATE_STORAGE_FORMAT

in drupal:8.5.0 and is removed from drupal:9.0.0. Use \Drupal\datetime\Plugin\Field\FieldType\DateTimeItemInterface::DATE_STORAGE_FORMAT instead.

core/modules/datetime/datetime.module Defines the format that dates should be stored in.
DATETIME_STORAGE_TIMEZONE

in drupal:8.5.0 and is removed from drupal:9.0.0. Use \Drupal\datetime\Plugin\Field\FieldType\DateTimeItemInterface::STORAGE_TIMEZONE instead.

core/modules/datetime/datetime.module Defines the timezone that dates should be stored in.
DRUPAL_ANONYMOUS_RID

in drupal:8.0.0 and is removed from drupal:9.0.0. Use Drupal\Core\Session\AccountInterface::ANONYMOUS_ROLE or \Drupal\user\RoleInterface::ANONYMOUS_ID instead.

core/includes/bootstrap.inc Role ID for anonymous users; should match what's in the "role" table.
DRUPAL_AUTHENTICATED_RID

in drupal:8.0.0 and is removed from drupal:9.0.0. Use Drupal\Core\Session\AccountInterface::AUTHENTICATED_ROLE or \Drupal\user\RoleInterface::AUTHENTICATED_ID instead.

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

in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Extension\ExtensionDiscovery::PHP_FUNCTION_PATTERN instead.

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 6
DRUPAL_USER_TIMEZONE_DEFAULT

in drupal:8.3.0 and is removed from drupal:9.0.0. Use \Drupal\user\UserInterface::TIMEZONE_DEFAULT instead.

core/modules/system/system.module New users will be set to the default time zone at registration.
DRUPAL_USER_TIMEZONE_EMPTY

in drupal:8.3.0 and is removed from drupal:9.0.0. Use \Drupal\user\UserInterface::TIMEZONE_EMPTY instead.

core/modules/system/system.module New users will get an empty time zone at registration.
DRUPAL_USER_TIMEZONE_SELECT

in drupal:8.3.0 and is removed from drupal:9.0.0. Use \Drupal\user\UserInterface::TIMEZONE_SELECT instead.

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

in drupal:8.0.0 and is removed from drupal:9.0.0. Use \Drupal\Core\File\FileSystem::CHMOD_DIRECTORY.

core/includes/file.inc Default mode for new directories. 3
FILE_CHMOD_FILE

in drupal:8.0.0 and is removed from drupal:9.0.0. Use \Drupal\Core\File\FileSystem::CHMOD_FILE.

core/includes/file.inc Default mode for new files. 5
FILE_CREATE_DIRECTORY

in drupal:8.7.0 and is removed from drupal:9.0.0. Use \Drupal\Core\File\FileSystemInterface::CREATE_DIRECTORY.

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

in drupal:8.7.0 and is removed from drupal:9.0.0. Use \Drupal\Core\File\FileSystemInterface::EXISTS_ERROR.

core/includes/file.inc Flag for dealing with existing files: Do nothing and return FALSE.
FILE_EXISTS_RENAME

in drupal:8.7.0 and is removed from drupal:9.0.0. Use \Drupal\Core\File\FileSystemInterface::EXISTS_RENAME.

core/includes/file.inc Flag for dealing with existing files: Appends number until name is unique.
FILE_EXISTS_REPLACE

in drupal:8.7.0 and is removed from drupal:9.0.0. Use \Drupal\Core\File\FileSystemInterface::EXISTS_REPLACE.

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

in drupal:8.7.0 and is removed from drupal:9.0.0. Use \Drupal\Core\File\FileSystemInterface::MODIFY_PERMISSIONS.

core/includes/file.inc Flag used to indicate file permissions may be changed.

Other projects


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