diff --git a/core/modules/aggregator/aggregator.module b/core/modules/aggregator/aggregator.module index 1cda00e..5392a6e 100644 --- a/core/modules/aggregator/aggregator.module +++ b/core/modules/aggregator/aggregator.module @@ -6,7 +6,6 @@ */ use Drupal\aggregator\Entity\Feed; -use Drupal\aggregator\FeedStorageInterface; use Drupal\Core\Routing\RouteMatchInterface; /** @@ -15,7 +14,7 @@ * Scheduled for removal in Drupal 9.0.0. * Use \Drupal\aggregator\FeedStorageInterface::CLEAR_NEVER instead. */ -const AGGREGATOR_CLEAR_NEVER = FeedStorageInterface::CLEAR_NEVER; +const AGGREGATOR_CLEAR_NEVER = 0; /** * Implements hook_help(). diff --git a/core/modules/comment/comment.module b/core/modules/comment/comment.module index 3d4fac8..57753ff 100644 --- a/core/modules/comment/comment.module +++ b/core/modules/comment/comment.module @@ -32,7 +32,7 @@ * Scheduled for removal in Drupal 9.0.0. * Use \Drupal\comment\CommentInterface::ANONYMOUS_MAYNOT_CONTACT instead. */ -const COMMENT_ANONYMOUS_MAYNOT_CONTACT = CommentInterface::ANONYMOUS_MAYNOT_CONTACT; +const COMMENT_ANONYMOUS_MAYNOT_CONTACT = 0; /** * Anonymous posters may leave their contact information. @@ -40,7 +40,7 @@ * Scheduled for removal in Drupal 9.0.0. * Use \Drupal\comment\CommentInterface::ANONYMOUS_MAY_CONTACT instead. */ -const COMMENT_ANONYMOUS_MAY_CONTACT = CommentInterface::ANONYMOUS_MAY_CONTACT; +const COMMENT_ANONYMOUS_MAY_CONTACT = 1; /** * Anonymous posters are required to leave their contact information. @@ -49,7 +49,7 @@ * Use \Drupal\comment\CommentInterface::ANONYMOUS_MUST_CONTACT * instead. */ -const COMMENT_ANONYMOUS_MUST_CONTACT = CommentInterface::ANONYMOUS_MUST_CONTACT; +const COMMENT_ANONYMOUS_MUST_CONTACT = 2; /** * The time cutoff for comments marked as read for entity types other node. diff --git a/core/modules/datetime/datetime.module b/core/modules/datetime/datetime.module index bb3d65b..7ef1e8c 100644 --- a/core/modules/datetime/datetime.module +++ b/core/modules/datetime/datetime.module @@ -5,7 +5,6 @@ * Field hooks to implement a simple datetime field. */ -use Drupal\Core\Datetime\DateFormatterInterface; use Drupal\Core\Routing\RouteMatchInterface; /** @@ -14,7 +13,7 @@ * Scheduled for removal in Drupal 9.0.0. * Use \Drupal\Core\Datetime\DateFormatterInterface::STORAGE_TIMEZONE instead. */ -const DATETIME_STORAGE_TIMEZONE = DateFormatterInterface::STORAGE_TIMEZONE; +const DATETIME_STORAGE_TIMEZONE = 'UTC'; /** * Defines the format that date and time should be stored in. @@ -23,7 +22,7 @@ * Use \Drupal\Core\Datetime\DateFormatterInterface::DATETIME_STORAGE_FORMAT * instead. */ -const DATETIME_DATETIME_STORAGE_FORMAT = DateFormatterInterface::DATETIME_STORAGE_FORMAT; +const DATETIME_DATETIME_STORAGE_FORMAT = 'Y-m-d\TH:i:s'; /** * Defines the format that dates should be stored in. @@ -32,7 +31,7 @@ * Use \Drupal\Core\Datetime\DateFormatterInterface::DATE_STORAGE_FORMAT * instead. */ -const DATETIME_DATE_STORAGE_FORMAT = DateFormatterInterface::DATE_STORAGE_FORMAT; +const DATETIME_DATE_STORAGE_FORMAT = 'Y-m-d'; /** * Implements hook_help(). diff --git a/core/modules/menu_ui/menu_ui.module b/core/modules/menu_ui/menu_ui.module index 00031bd..d34fb25 100644 --- a/core/modules/menu_ui/menu_ui.module +++ b/core/modules/menu_ui/menu_ui.module @@ -30,7 +30,7 @@ * Use \Drupal\Core\Menu\MenuLinkManagerInterface::MAX_MENU_NAME_LENGTH_UI * instead. */ -const MENU_MAX_MENU_NAME_LENGTH_UI = MenuLinkManagerInterface::MAX_MENU_NAME_LENGTH_UI; +const MENU_MAX_MENU_NAME_LENGTH_UI = 27; /** * Implements hook_help(). diff --git a/core/modules/node/node.module b/core/modules/node/node.module index 9eb0f28..4c16d23 100644 --- a/core/modules/node/node.module +++ b/core/modules/node/node.module @@ -35,7 +35,7 @@ * Scheduled for removal in Drupal 9.0.0. * Use \Drupal\node\NodeInterface::NOT_PUBLISHED instead. */ -const NODE_NOT_PUBLISHED = NodeInterface::NOT_PUBLISHED; +const NODE_NOT_PUBLISHED = 0; /** * Denotes that the node is published. @@ -43,7 +43,7 @@ * Scheduled for removal in Drupal 9.0.0. * Use \Drupal\node\NodeInterface::PUBLISHED instead. */ -const NODE_PUBLISHED = NodeInterface::PUBLISHED; +const NODE_PUBLISHED = 1; /** * Denotes that the node is not promoted to the front page. @@ -51,7 +51,7 @@ * Scheduled for removal in Drupal 9.0.0. * Use \Drupal\node\NodeInterface::NOT_PROMOTED instead. */ -const NODE_NOT_PROMOTED = NodeInterface::NOT_PROMOTED; +const NODE_NOT_PROMOTED = 0; /** * Denotes that the node is promoted to the front page. @@ -59,7 +59,7 @@ * Scheduled for removal in Drupal 9.0.0. * Use \Drupal\node\NodeInterface::PROMOTED instead. */ -const NODE_PROMOTED = NodeInterface::PROMOTED; +const NODE_PROMOTED = 1; /** * Denotes that the node is not sticky at the top of the page. @@ -67,7 +67,7 @@ * Scheduled for removal in Drupal 9.0.0. * Use \Drupal\node\NodeInterface::NOT_STICKY instead. */ -const NODE_NOT_STICKY = NodeInterface::NOT_STICKY; +const NODE_NOT_STICKY = 0; /** * Denotes that the node is sticky at the top of the page. @@ -75,7 +75,7 @@ * Scheduled for removal in Drupal 9.0.0. * Use \Drupal\node\NodeInterface::STICKY instead. */ -const NODE_STICKY = NodeInterface::STICKY; +const NODE_STICKY = 1; /** * Implements hook_help(). diff --git a/core/modules/responsive_image/responsive_image.module b/core/modules/responsive_image/responsive_image.module index 2657b35..1f82e44 100644 --- a/core/modules/responsive_image/responsive_image.module +++ b/core/modules/responsive_image/responsive_image.module @@ -23,8 +23,8 @@ * and \Drupal\responsive_image\ResponsiveImageStyleInterface::ORIGINAL_IMAGE * instead. */ -const RESPONSIVE_IMAGE_EMPTY_IMAGE = ResponsiveImageStyleInterface::EMPTY_IMAGE; -const RESPONSIVE_IMAGE_ORIGINAL_IMAGE = ResponsiveImageStyleInterface::ORIGINAL_IMAGE; +const RESPONSIVE_IMAGE_EMPTY_IMAGE = '_empty image_'; +const RESPONSIVE_IMAGE_ORIGINAL_IMAGE = '_original image_'; /** * Implements hook_help(). diff --git a/core/modules/system/system.module b/core/modules/system/system.module index cbf6317..120aabc 100644 --- a/core/modules/system/system.module +++ b/core/modules/system/system.module @@ -14,7 +14,6 @@ use Drupal\Core\Database\Query\AlterableInterface; use Drupal\Core\Extension\Extension; use Drupal\Core\Extension\ExtensionDiscovery; -use Drupal\Core\Form\FormInterface; use Drupal\Core\Form\FormStateInterface; use Drupal\Core\KeyValueStore\KeyValueDatabaseExpirableFactory; use Drupal\Core\PageCache\RequestPolicyInterface; @@ -55,28 +54,28 @@ const DRUPAL_USER_TIMEZONE_SELECT = 2; /** - * Disabled option on forms and settings + * Disabled option on forms and settings. * * Scheduled for removal in Drupal 9.0.0. * Use \Drupal\Core\Form\FormInterface::DISABLED instead. */ -const DRUPAL_DISABLED = FormInterface::DISABLED; +const DRUPAL_DISABLED = 0; /** - * Optional option on forms and settings + * Optional option on forms and settings. * * Scheduled for removal in Drupal 9.0.0. * Use \Drupal\Core\Form\FormInterface::OPTIONAL instead. */ -const DRUPAL_OPTIONAL = FormInterface::OPTIONAL; +const DRUPAL_OPTIONAL = 1; /** - * Required option on forms and settings + * Required option on forms and settings. * * Scheduled for removal in Drupal 9.0.0. * Use \Drupal\Core\Form\FormInterface::REQUIRED instead. */ -const DRUPAL_REQUIRED = FormInterface::REQUIRED; +const DRUPAL_REQUIRED = 2; /** * Return only visible regions. diff --git a/core/modules/user/user.module b/core/modules/user/user.module index c59a97f..330a751 100644 --- a/core/modules/user/user.module +++ b/core/modules/user/user.module @@ -32,7 +32,7 @@ * Scheduled for removal in Drupal 9.0.0. * Use \Drupal\user\UserInterface::USERNAME_MAX_LENGTH instead. */ -const USERNAME_MAX_LENGTH = UserInterface::USERNAME_MAX_LENGTH; +const USERNAME_MAX_LENGTH = 60; /** * Only administrators can create user accounts. @@ -40,7 +40,7 @@ * Scheduled for removal in Drupal 9.0.0. * Use \Drupal\user\UserInterface::REGISTER_ADMINISTRATORS_ONLY instead. */ -const USER_REGISTER_ADMINISTRATORS_ONLY = UserInterface::REGISTER_ADMINISTRATORS_ONLY; +const USER_REGISTER_ADMINISTRATORS_ONLY = 'admin_only'; /** * Visitors can create their own accounts. @@ -48,7 +48,7 @@ * Scheduled for removal in Drupal 9.0.0. * Use \Drupal\user\UserInterface::REGISTER_VISITORS instead. */ -const USER_REGISTER_VISITORS = UserInterface::REGISTER_VISITORS; +const USER_REGISTER_VISITORS = 'visitors'; /** * Visitors can create accounts, but they don't become active without @@ -58,7 +58,7 @@ * Use \Drupal\user\UserInterface::REGISTER_VISITORS_ADMINISTRATIVE_APPROVAL * instead. */ -const USER_REGISTER_VISITORS_ADMINISTRATIVE_APPROVAL = UserInterface::REGISTER_VISITORS_ADMINISTRATIVE_APPROVAL; +const USER_REGISTER_VISITORS_ADMINISTRATIVE_APPROVAL = 'visitors_admin_approval'; /** * Implements hook_help().