Constants - 8.9.x - drupal
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/ |
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/ |
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/ |
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/ |
Anonymous posters are required to leave their contact information. | ||
COMMENT_NEW_LIMIT | core/ |
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/ |
$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/ |
$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/ |
$config_directories key for sync directory. | 4 | 27 |
CSS_AGGREGATE_DEFAULT | core/ |
The default aggregation group for CSS files added to the page. | 2 | 2 | |
CSS_AGGREGATE_THEME | core/ |
The default aggregation group for theme CSS files added to the page. | 1 | 1 | |
CSS_BASE | core/ |
The default weight for CSS rules that style HTML elements ("base" styles). | 1 | ||
CSS_COMPONENT | core/ |
The default weight for CSS rules that style design components (and their associated states and themes.) | 1 | ||
CSS_LAYOUT | core/ |
The default weight for CSS rules that layout a page. | 1 | ||
CSS_STATE | core/ |
The default weight for CSS rules that style states and are not included with components. | 1 | ||
CSS_THEME | core/ |
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/ |
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/ |
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/ |
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/ |
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/ |
Role ID for authenticated users; should match what's in the "role" table. | ||
DRUPAL_DISABLED | core/ |
Disabled option on forms and settings | 28 | ||
DRUPAL_EXTENSION_NAME_MAX_LENGTH | core/ |
The maximum number of characters in a module or theme name. | 6 | ||
DRUPAL_MINIMUM_PHP | core/ |
Minimum allowed version of PHP. | 3 | 4 | |
DRUPAL_MINIMUM_PHP_MEMORY_LIMIT | core/ |
Minimum recommended value of PHP memory_limit. | 1 | ||
DRUPAL_MINIMUM_SUPPORTED_PHP | core/ |
Minimum supported version of PHP. | 5 | ||
DRUPAL_OPTIONAL | core/ |
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/ |
Regular expression to match PHP function names. | ||
DRUPAL_RECOMMENDED_PHP | core/ |
Minimum recommended version of PHP. | 1 | ||
DRUPAL_REQUIRED | core/ |
Required option on forms and settings | 17 | ||
DRUPAL_ROOT | core/ |
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/ |
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/ |
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/ |
New users will select their own timezone at registration. | ||
ENTITY_TEST_TYPES_MULTILINGUAL | core/ |
Filter that limits test entity list to multilingual ones. | 6 | ||
ENTITY_TEST_TYPES_REVISABLE | core/ |
Filter that limits test entity list to revisable ones. | 3 | ||
ENTITY_TEST_TYPES_ROUTING | core/ |
Filter that limits test entity list to routeable ones. | 3 | ||
ERROR_REPORTING_DISPLAY_ALL | core/ |
Error reporting level: display all messages. | 3 | ||
ERROR_REPORTING_DISPLAY_SOME | core/ |
Error reporting level: display errors and warnings. | 1 | ||
ERROR_REPORTING_DISPLAY_VERBOSE | core/ |
Error reporting level: display all messages, plus backtrace information. | 7 | ||
ERROR_REPORTING_HIDE | core/ |
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/ |
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/ |
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/ |
Flag used to create a directory if not present. | ||
FILE_EXECUTABLE | core/ |
File permission check -- File is executable. | 4 | ||
FILE_EXIST | core/ |
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/ |
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/ |
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/ |
Flag for dealing with existing files: Replace the existing file. | ||
FILE_INSECURE_EXTENSION_REGEX | core/ |
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/ |
Flag used to indicate file permissions may be changed. |
Pagination
- Page 1
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.