diff --git a/core/lib/Drupal/Core/Datetime/DateFormatterInterface.php b/core/lib/Drupal/Core/Datetime/DateFormatterInterface.php index af739ec..3515ee4 100644 --- a/core/lib/Drupal/Core/Datetime/DateFormatterInterface.php +++ b/core/lib/Drupal/Core/Datetime/DateFormatterInterface.php @@ -8,21 +8,6 @@ interface DateFormatterInterface { /** - * Defines the timezone that dates should be stored in. - */ - const STORAGE_TIMEZONE = 'UTC'; - - /** - * Defines the format that date and time should be stored in. - */ - const DATETIME_STORAGE_FORMAT = 'Y-m-d\TH:i:s'; - - /** - * Defines the format that dates should be stored in. - */ - const DATE_STORAGE_FORMAT = 'Y-m-d'; - - /** * Formats a date, using a date type or a custom date format string. * * @param int $timestamp diff --git a/core/modules/aggregator/aggregator.module b/core/modules/aggregator/aggregator.module index 5392a6e..d4adae4 100644 --- a/core/modules/aggregator/aggregator.module +++ b/core/modules/aggregator/aggregator.module @@ -11,8 +11,8 @@ /** * Denotes that a feed's items should never expire. * - * Scheduled for removal in Drupal 9.0.0. - * Use \Drupal\aggregator\FeedStorageInterface::CLEAR_NEVER instead. + * @deprecated in Drupal 8.3.x and will be removed before Drupal 9.0.x. + * Use \Drupal\aggregator\FeedStorageInterface::CLEAR_NEVER instead. */ const AGGREGATOR_CLEAR_NEVER = 0; diff --git a/core/modules/comment/comment.module b/core/modules/comment/comment.module index 57753ff..0614d81 100644 --- a/core/modules/comment/comment.module +++ b/core/modules/comment/comment.module @@ -29,25 +29,24 @@ /** * Anonymous posters cannot enter their contact information. * - * Scheduled for removal in Drupal 9.0.0. - * Use \Drupal\comment\CommentInterface::ANONYMOUS_MAYNOT_CONTACT instead. + * @deprecated in Drupal 8.3.x and will be removed before Drupal 9.0.x. + * Use \Drupal\comment\CommentInterface::ANONYMOUS_MAYNOT_CONTACT instead. */ const COMMENT_ANONYMOUS_MAYNOT_CONTACT = 0; /** * Anonymous posters may leave their contact information. * - * Scheduled for removal in Drupal 9.0.0. - * Use \Drupal\comment\CommentInterface::ANONYMOUS_MAY_CONTACT instead. + * @deprecated in Drupal 8.3.x and will be removed before Drupal 9.0.x. + * Use \Drupal\comment\CommentInterface::ANONYMOUS_MAY_CONTACT instead. */ const COMMENT_ANONYMOUS_MAY_CONTACT = 1; /** * Anonymous posters are required to leave their contact information. * - * Scheduled for removal in Drupal 9.0.0. - * Use \Drupal\comment\CommentInterface::ANONYMOUS_MUST_CONTACT - * instead. + * @deprecated in Drupal 8.3.x and will be removed before Drupal 9.0.x. + * Use \Drupal\comment\CommentInterface::ANONYMOUS_MUST_CONTACT instead. */ const COMMENT_ANONYMOUS_MUST_CONTACT = 2; diff --git a/core/modules/datetime/datetime.module b/core/modules/datetime/datetime.module index 7ef1e8c..1078541 100644 --- a/core/modules/datetime/datetime.module +++ b/core/modules/datetime/datetime.module @@ -9,27 +9,16 @@ /** * Defines the timezone that dates should be stored in. - * - * Scheduled for removal in Drupal 9.0.0. - * Use \Drupal\Core\Datetime\DateFormatterInterface::STORAGE_TIMEZONE instead. */ const DATETIME_STORAGE_TIMEZONE = 'UTC'; /** * Defines the format that date and time should be stored in. - * - * Scheduled for removal in Drupal 9.0.0. - * Use \Drupal\Core\Datetime\DateFormatterInterface::DATETIME_STORAGE_FORMAT - * instead. */ const DATETIME_DATETIME_STORAGE_FORMAT = 'Y-m-d\TH:i:s'; /** * Defines the format that dates should be stored in. - * - * Scheduled for removal in Drupal 9.0.0. - * Use \Drupal\Core\Datetime\DateFormatterInterface::DATE_STORAGE_FORMAT - * instead. */ const DATETIME_DATE_STORAGE_FORMAT = 'Y-m-d'; diff --git a/core/modules/menu_ui/menu_ui.module b/core/modules/menu_ui/menu_ui.module index d34fb25..bbd8669 100644 --- a/core/modules/menu_ui/menu_ui.module +++ b/core/modules/menu_ui/menu_ui.module @@ -14,7 +14,6 @@ use Drupal\Core\Block\BlockPluginInterface; use Drupal\Core\Link; use Drupal\Core\Menu\MenuLinkInterface; -use Drupal\Core\Menu\MenuLinkManagerInterface; use Drupal\Core\Form\FormStateInterface; use Drupal\Core\Routing\RouteMatchInterface; use Drupal\menu_link_content\Entity\MenuLinkContent; @@ -23,12 +22,13 @@ use Drupal\node\NodeInterface; /** - * Maximum length of menu name as entered by the user. Database length is 32 - * and we add a menu- prefix. + * Maximum length of menu name as entered by the user. * - * Scheduled for removal in Drupal 9.0.0. - * Use \Drupal\Core\Menu\MenuLinkManagerInterface::MAX_MENU_NAME_LENGTH_UI - * instead. + * Database length is 32 and we add a menu- prefix. + * + * @deprecated in Drupal 8.3.x and will be removed before Drupal 9.0.x. + * Use \Drupal\Core\Menu\MenuLinkManagerInterface::MAX_MENU_NAME_LENGTH_UI + * instead. */ const MENU_MAX_MENU_NAME_LENGTH_UI = 27; diff --git a/core/modules/node/node.module b/core/modules/node/node.module index 4c16d23..fbd1fb4 100644 --- a/core/modules/node/node.module +++ b/core/modules/node/node.module @@ -32,48 +32,48 @@ /** * Denotes that the node is not published. * - * Scheduled for removal in Drupal 9.0.0. - * Use \Drupal\node\NodeInterface::NOT_PUBLISHED instead. + * @deprecated in Drupal 8.3.x and will be removed before Drupal 9.0.x. + * Use \Drupal\node\NodeInterface::NOT_PUBLISHED instead. */ const NODE_NOT_PUBLISHED = 0; /** * Denotes that the node is published. * - * Scheduled for removal in Drupal 9.0.0. - * Use \Drupal\node\NodeInterface::PUBLISHED instead. + * @deprecated in Drupal 8.3.x and will be removed before Drupal 9.0.x. + * Use \Drupal\node\NodeInterface::PUBLISHED instead. */ const NODE_PUBLISHED = 1; /** * Denotes that the node is not promoted to the front page. * - * Scheduled for removal in Drupal 9.0.0. - * Use \Drupal\node\NodeInterface::NOT_PROMOTED instead. + * @deprecated in Drupal 8.3.x and will be removed before Drupal 9.0.x. + * Use \Drupal\node\NodeInterface::NOT_PROMOTED instead. */ const NODE_NOT_PROMOTED = 0; /** * Denotes that the node is promoted to the front page. * - * Scheduled for removal in Drupal 9.0.0. - * Use \Drupal\node\NodeInterface::PROMOTED instead. + * @deprecated in Drupal 8.3.x and will be removed before Drupal 9.0.x. + * Use \Drupal\node\NodeInterface::PROMOTED instead. */ const NODE_PROMOTED = 1; /** * Denotes that the node is not sticky at the top of the page. * - * Scheduled for removal in Drupal 9.0.0. - * Use \Drupal\node\NodeInterface::NOT_STICKY instead. + * @deprecated in Drupal 8.3.x and will be removed before Drupal 9.0.x. + * Use \Drupal\node\NodeInterface::NOT_STICKY instead. */ const NODE_NOT_STICKY = 0; /** * Denotes that the node is sticky at the top of the page. * - * Scheduled for removal in Drupal 9.0.0. - * Use \Drupal\node\NodeInterface::STICKY instead. + * @deprecated in Drupal 8.3.x and will be removed before Drupal 9.0.x. + * Use \Drupal\node\NodeInterface::STICKY instead. */ const NODE_STICKY = 1; diff --git a/core/modules/responsive_image/responsive_image.module b/core/modules/responsive_image/responsive_image.module index 1f82e44..4cd5cb1 100644 --- a/core/modules/responsive_image/responsive_image.module +++ b/core/modules/responsive_image/responsive_image.module @@ -11,17 +11,16 @@ use Drupal\Core\Routing\RouteMatchInterface; use Drupal\image\Entity\ImageStyle; use Drupal\responsive_image\Entity\ResponsiveImageStyle; -use Drupal\responsive_image\ResponsiveImageStyleInterface; use Drupal\Core\Image\ImageInterface; use Drupal\breakpoint\BreakpointInterface; /** * The machine name for the empty image breakpoint image style option. * - * Scheduled for removal in Drupal 9.0.0. - * Use \Drupal\responsive_image\ResponsiveImageStyleInterface::EMPTY_IMAGE - * and \Drupal\responsive_image\ResponsiveImageStyleInterface::ORIGINAL_IMAGE - * instead. + * @deprecated in Drupal 8.3.x and will be removed before Drupal 9.0.x. + * Use \Drupal\responsive_image\ResponsiveImageStyleInterface::EMPTY_IMAGE + * and \Drupal\responsive_image\ResponsiveImageStyleInterface::ORIGINAL_IMAGE + * instead. */ const RESPONSIVE_IMAGE_EMPTY_IMAGE = '_empty image_'; const RESPONSIVE_IMAGE_ORIGINAL_IMAGE = '_original image_'; diff --git a/core/modules/system/system.module b/core/modules/system/system.module index 120aabc..1c77e23 100644 --- a/core/modules/system/system.module +++ b/core/modules/system/system.module @@ -5,7 +5,6 @@ * Configuration system that lets administrators modify the workings of the site. */ -use Drupal\block\BlockRepositoryInterface; use Drupal\Component\Render\PlainTextOutput; use Drupal\Component\Utility\UrlHelper; use Drupal\Core\Asset\AttachedAssetsInterface; @@ -32,56 +31,56 @@ /** * New users will be set to the default time zone at registration. * - * Scheduled for removal in Drupal 9.0.0. - * Use \Drupal\user\UserInterface::TIMEZONE_DEFAULT instead. + * @deprecated in Drupal 8.3.x and will be removed before Drupal 9.0.x. + * Use \Drupal\user\UserInterface::TIMEZONE_DEFAULT instead. */ const DRUPAL_USER_TIMEZONE_DEFAULT = 0; /** * New users will get an empty time zone at registration. * - * Scheduled for removal in Drupal 9.0.0. - * Use \Drupal\user\UserInterface::TIMEZONE_EMPTY instead. + * @deprecated in Drupal 8.3.x and will be removed before Drupal 9.0.x. + * Use \Drupal\user\UserInterface::TIMEZONE_EMPTY instead. */ const DRUPAL_USER_TIMEZONE_EMPTY = 1; /** * New users will select their own timezone at registration. * - * Scheduled for removal in Drupal 9.0.0. - * Use \Drupal\user\UserInterface::TIMEZONE_SELECT instead. + * @deprecated in Drupal 8.3.x and will be removed before Drupal 9.0.x. + * Use \Drupal\user\UserInterface::TIMEZONE_SELECT instead. */ const DRUPAL_USER_TIMEZONE_SELECT = 2; /** * Disabled option on forms and settings. * - * Scheduled for removal in Drupal 9.0.0. - * Use \Drupal\Core\Form\FormInterface::DISABLED instead. + * @deprecated in Drupal 8.3.x and will be removed before Drupal 9.0.x. + * Use \Drupal\Core\Form\FormInterface::DISABLED instead. */ const DRUPAL_DISABLED = 0; /** * Optional option on forms and settings. * - * Scheduled for removal in Drupal 9.0.0. - * Use \Drupal\Core\Form\FormInterface::OPTIONAL instead. + * @deprecated in Drupal 8.3.x and will be removed before Drupal 9.0.x. + * Use \Drupal\Core\Form\FormInterface::OPTIONAL instead. */ const DRUPAL_OPTIONAL = 1; /** * Required option on forms and settings. * - * Scheduled for removal in Drupal 9.0.0. - * Use \Drupal\Core\Form\FormInterface::REQUIRED instead. + * @deprecated in Drupal 8.3.x and will be removed before Drupal 9.0.x. + * Use \Drupal\Core\Form\FormInterface::REQUIRED instead. */ const DRUPAL_REQUIRED = 2; /** * Return only visible regions. * - * Scheduled for removal in Drupal 9.0.0. - * Use \Drupal\block\BlockRepositoryInterface::REGIONS_VISIBLE instead. + * @deprecated in Drupal 8.3.x and will be removed before Drupal 9.0.x. + * Use \Drupal\block\BlockRepositoryInterface::REGIONS_VISIBLE instead. * * @see system_region_list() */ @@ -90,8 +89,8 @@ /** * Return all regions. * - * Scheduled for removal in Drupal 9.0.0. - * Use \Drupal\block\BlockRepositoryInterface::REGIONS_ALL instead. + * @deprecated in Drupal 8.3.x and will be removed before Drupal 9.0.x. + * Use \Drupal\block\BlockRepositoryInterface::REGIONS_ALL instead. * * @see system_region_list() */ diff --git a/core/modules/update/update.module b/core/modules/update/update.module index 59e8b31..f280e01 100644 --- a/core/modules/update/update.module +++ b/core/modules/update/update.module @@ -15,80 +15,80 @@ use Drupal\Core\Form\FormStateInterface; use Drupal\Core\Routing\RouteMatchInterface; use Drupal\Core\Site\Settings; -use Drupal\update\UpdateFetcherInterface; -use Drupal\update\UpdateManagerInterface; -// These are internally used constants for this code, do not modify. +/* + * These are internally used constants for this code, do not modify. + */ /** * Project is missing security update(s). * - * Scheduled for removal in Drupal 9.0.0. - * Use \Drupal\update\UpdateManagerInterface::NOT_SECURE instead. + * @deprecated in Drupal 8.3.x and will be removed before Drupal 9.0.x. + * Use \Drupal\update\UpdateManagerInterface::NOT_SECURE instead. */ const UPDATE_NOT_SECURE = 1; /** * Current release has been unpublished and is no longer available. * - * Scheduled for removal in Drupal 9.0.0. - * Use \Drupal\update\UpdateManagerInterface::REVOKED instead. + * @deprecated in Drupal 8.3.x and will be removed before Drupal 9.0.x. + * Use \Drupal\update\UpdateManagerInterface::REVOKED instead. */ const UPDATE_REVOKED = 2; /** * Current release is no longer supported by the project maintainer. * - * Scheduled for removal in Drupal 9.0.0. - * Use \Drupal\update\UpdateManagerInterface::NOT_SUPPORTED instead. + * @deprecated in Drupal 8.3.x and will be removed before Drupal 9.0.x. + * Use \Drupal\update\UpdateManagerInterface::NOT_SUPPORTED instead. */ const UPDATE_NOT_SUPPORTED = 3; /** * Project has a new release available, but it is not a security release. * - * Scheduled for removal in Drupal 9.0.0. - * Use \Drupal\update\UpdateManagerInterface::NOT_CURRENT instead. + * @deprecated in Drupal 8.3.x and will be removed before Drupal 9.0.x. + * Use \Drupal\update\UpdateManagerInterface::NOT_CURRENT instead. */ const UPDATE_NOT_CURRENT = 4; /** * Project is up to date. * - * Scheduled for removal in Drupal 9.0.0. - * Use \Drupal\update\UpdateManagerInterface::CURRENT instead. + * @deprecated in Drupal 8.3.x and will be removed before Drupal 9.0.x. + * Use \Drupal\update\UpdateManagerInterface::CURRENT instead. */ const UPDATE_CURRENT = 5; /** * Project's status cannot be checked. * - * Scheduled for removal in Drupal 9.0.0. - * Use \Drupal\update\UpdateFetcherInterface::NOT_CHECKED instead. + * @deprecated in Drupal 8.3.x and will be removed before Drupal 9.0.x. + * Use \Drupal\update\UpdateFetcherInterface::NOT_CHECKED instead. */ const UPDATE_NOT_CHECKED = -1; /** * No available update data was found for project. * - * Scheduled for removal in Drupal 9.0.0. - * Use \Drupal\update\UpdateFetcherInterface::UNKNOWN instead. + * @deprecated in Drupal 8.3.x and will be removed before Drupal 9.0.x. + * Use \Drupal\update\UpdateFetcherInterface::UNKNOWN instead. */ const UPDATE_UNKNOWN = -2; /** * There was a failure fetching available update data for this project. * - * Scheduled for removal in Drupal 9.0.0. - * Use \Drupal\update\UpdateFetcherInterface::NOT_FETCHED instead. + * @deprecated in Drupal 8.3.x and will be removed before Drupal 9.0.x. + * Use \Drupal\update\UpdateFetcherInterface::NOT_FETCHED instead. */ const UPDATE_NOT_FETCHED = -3; /** * We need to (re)fetch available update data for this project. * - * Scheduled for removal in Drupal 9.0.0. - * Use \Drupal\update\UpdateFetcherInterface::FETCH_PENDING instead. + * @deprecated in Drupal 8.3.x and will be removed before Drupal 9.0.x. + * Use \Drupal\update\UpdateFetcherInterface::FETCH_PENDING instead. */ const UPDATE_FETCH_PENDING = -4; diff --git a/core/modules/user/user.module b/core/modules/user/user.module index 330a751..969ef89 100644 --- a/core/modules/user/user.module +++ b/core/modules/user/user.module @@ -29,24 +29,24 @@ * * Keep this under 191 characters so we can use a unique constraint in MySQL. * - * Scheduled for removal in Drupal 9.0.0. - * Use \Drupal\user\UserInterface::USERNAME_MAX_LENGTH instead. + * @deprecated in Drupal 8.3.x and will be removed before Drupal 9.0.x. + * Use \Drupal\user\UserInterface::USERNAME_MAX_LENGTH instead. */ const USERNAME_MAX_LENGTH = 60; /** * Only administrators can create user accounts. * - * Scheduled for removal in Drupal 9.0.0. - * Use \Drupal\user\UserInterface::REGISTER_ADMINISTRATORS_ONLY instead. + * @deprecated in Drupal 8.3.x and will be removed before Drupal 9.0.x. + * Use \Drupal\user\UserInterface::REGISTER_ADMINISTRATORS_ONLY instead. */ const USER_REGISTER_ADMINISTRATORS_ONLY = 'admin_only'; /** * Visitors can create their own accounts. * - * Scheduled for removal in Drupal 9.0.0. - * Use \Drupal\user\UserInterface::REGISTER_VISITORS instead. + * @deprecated in Drupal 8.3.x and will be removed before Drupal 9.0.x. + * Use \Drupal\user\UserInterface::REGISTER_VISITORS instead. */ const USER_REGISTER_VISITORS = 'visitors'; @@ -54,8 +54,8 @@ * Visitors can create accounts, but they don't become active without * administrative approval. * - * Scheduled for removal in Drupal 9.0.0. - * Use \Drupal\user\UserInterface::REGISTER_VISITORS_ADMINISTRATIVE_APPROVAL + * @deprecated in Drupal 8.3.x and will be removed before Drupal 9.0.x. + * Use \Drupal\user\UserInterface::REGISTER_VISITORS_ADMINISTRATIVE_APPROVAL * instead. */ const USER_REGISTER_VISITORS_ADMINISTRATIVE_APPROVAL = 'visitors_admin_approval';