Each class using DRUPAL_* constants from system.module should define its own constants

Created on 11 February 2017, about 8 years ago
Updated 18 March 2024, about 1 year ago

Problem/Motivation

Split from #2807785: Move global constants from *.module files into interfaces β†’ , comment #64, suggested by @Berdir.

DRUPAL_DISABLED, DRUPAL_OPTIONAL, and DRUPAL_REQUIRED are too generic to be meaningful.

I can only see 3 uses of them, node preview, comment preview and link title. Maybe each should define its own constants?

Proposed resolution

Add separate constants to node preview, comment preview, and link title, and deprecate the system.module DRUPAL_ constants in favor of the replacements.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ“Œ Task
Status

Active

Version

11.0 πŸ”₯

Component
BaseΒ  β†’

Last updated about 14 hours ago

Created by

πŸ‡·πŸ‡΄Romania claudiu.cristea Arad πŸ‡·πŸ‡΄

Live updates comments and jobs are added and updated live.
  • Novice

    It would make a good project for someone who is new to the Drupal contribution process. It's preferred over Newbie.

Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024