Closed (duplicate)
Project:
Drupal core
Version:
11.x-dev
Component:
datetime.module
Priority:
Minor
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
25 Nov 2025 at 04:10 UTC
Updated:
27 Dec 2025 at 20:45 UTC
Jump to comment: Most recent
Comments
Comment #3
acbramley commentedComment #4
smustgrave commentedSeems straight forward. Searched the module for other instances and this was the only one.
Comment #5
mstrelan commentedDon't want to hold this up, but wonder if we should do this for all setClass calls. There are 20 instances of
setClass('DrupalorsetClass('\Drupalthat could use the class constant instead.There are 55 instances using class constants:
Comment #6
acbramley commentedI wanted to keep a tight scope to keep this nice and easy. There is #2886352: Replace string 'path/to/class' with ::class constant which has an even wider scope and has gone stale for 7 years.
Comment #7
xjmI get wanting to just fix the one instance, but this is a child/duplicate of #2886352: Replace string 'path/to/class' with ::class constant. Adding your credits over there. Thanks!