Change record status: 
Project: 
Introduced in branch: 
11.3.x
Introduced in version: 
11.3.0
Description: 

The constants DRUPAL_DISABLED, DRUPAL_OPTIONAL, DRUPAL_REQUIRED have been deprecated.

Use of these constants have been replaced with enum classes in the respective modules.

  • comment
  • link
  • node

The new, equivalent enums have kept the same integer values.

See:

  • core/modules/comment/src/CommentPreview.php
  • core/modules/link/src/LinkTitleVisibility.php
  • core/modules/node/src/NodePreview.php

Either use the appropriate new enum or create a custom enum.

Impacts: 
Module developers