Change record status: 
Project: 
Introduced in branch: 
8.3.x
Introduced in version: 
8.3.0-beta1
Description: 

The following global constants have been deprecated and moved to appropriate interfaces:

Here is the list of each old constant with its related new constant:

Global constant (deprecated) Moved to...
aggregator.module
AGGREGATOR_CLEAR_NEVER \Drupal\aggregator\FeedStorageInterface::CLEAR_NEVER
comment.module
COMMENT_ANONYMOUS_MAYNOT_CONTACT \Drupal\comment\CommentInterface::ANONYMOUS_MAYNOT_CONTACT
COMMENT_ANONYMOUS_MAY_CONTACT \Drupal\comment\CommentInterface::ANONYMOUS_MAY_CONTACT
COMMENT_ANONYMOUS_MUST_CONTACT \Drupal\comment\CommentInterface::ANONYMOUS_MUST_CONTACT
datetime.module
DATETIME_STORAGE_TIMEZONE \Drupal\datetime\Plugin\Field\FieldType\DateTimeItemInterface::STORAGE_TIMEZONE
DATETIME_DATETIME_STORAGE_FORMAT \Drupal\datetime\Plugin\Field\FieldType\DateTimeItemInterface::DATETIME_STORAGE_FORMAT
DATETIME_DATE_STORAGE_FORMAT \Drupal\datetime\Plugin\Field\FieldType\DateTimeItemInterface::DATE_STORAGE_FORMAT
menu_ui.module
MENU_MAX_MENU_NAME_LENGTH_UI Use \Drupal\Core\Config\Entity\ConfigEntityStorage::MAX_ID_LENGTH instead for the full name (including menu- prefix)
responsive_image.module
RESPONSIVE_IMAGE_EMPTY_IMAGE \Drupal\responsive_image\ResponsiveImageStyleInterface::EMPTY_IMAGE
RESPONSIVE_IMAGE_ORIGINAL_IMAGE \Drupal\responsive_image\ResponsiveImageStyleInterface::ORIGINAL_IMAGE
system.module
DRUPAL_USER_TIMEZONE_DEFAULT \Drupal\user\UserInterface::TIMEZONE_DEFAULT
DRUPAL_USER_TIMEZONE_EMPTY \Drupal\user\UserInterface::TIMEZONE_EMPTY
DRUPAL_USER_TIMEZONE_SELECT \Drupal\user\UserInterface::TIMEZONE_SELECT
update.module
UPDATE_NOT_SECURE \Drupal\update\UpdateManagerInterface::NOT_SECURE
UPDATE_REVOKED \Drupal\update\UpdateManagerInterface::REVOKED
UPDATE_NOT_SUPPORTED \Drupal\update\UpdateManagerInterface::NOT_SUPPORTED
UPDATE_NOT_CURRENT \Drupal\update\UpdateManagerInterface::NOT_CURRENT
UPDATE_CURRENT \Drupal\update\UpdateManagerInterface::CURRENT
UPDATE_NOT_CHECKED \Drupal\update\UpdateFetcherInterface::NOT_CHECKED
UPDATE_UNKNOWN \Drupal\update\UpdateFetcherInterface::UNKNOWN
UPDATE_NOT_FETCHED \Drupal\update\UpdateFetcherInterface::NOT_FETCHED
UPDATE_FETCH_PENDING \Drupal\update\UpdateFetcherInterface::FETCH_PENDING
user.module
USERNAME_MAX_LENGTH \Drupal\user\UserInterface::USERNAME_MAX_LENGTH
USER_REGISTER_ADMINISTRATORS_ONLY \Drupal\user\UserInterface::REGISTER_ADMINISTRATORS_ONLY
USER_REGISTER_VISITORS \Drupal\user\UserInterface::REGISTER_VISITORS
USER_REGISTER_VISITORS_ADMINISTRATIVE_APPROVAL \Drupal\user\UserInterface::REGISTER_VISITORS_ADMINISTRATIVE_APPROVAL

Any contributed module or theme which previously used one of these constants needs updating before Drupal 9 to match this change.

Impacts: 
Module developers