[Meta] Consistent use of leading \ for class names

Created on 17 December 2020, about 4 years ago
Updated 27 February 2025, 10 days ago

Problem/Motivation

There are several issues in core about making the use of the \ in namespaces consistent in core. Some of the work in those issues overlaps each other.

#3144809: PHPCS rule for consistent usage of '\Drupal'

#2859992: [PP-1] Consistent use of leading \ for class names in *.api.php files
#2912687: [PP-1] Consistent use of leading \ for class names in comments
#3082854: [PP-1] Consistently use \Drupal::foo() instead of Drupal::foo()
#3089634: missing initial backslash on parameter interface typehints in entity.api.php
#3123593: [PP-1] Class names in *.services.yml inconsistently use leading \

Steps to reproduce

Proposed resolution

Create a meta to separate the work into clearly defined manageable pieces. Mark all as postponed on #3054969: Add sniff for \Drupal vs Drupal .

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

🌱 Plan
Status

Postponed

Version

11.0 🔥

Component

other

Created by

🇳🇿New Zealand quietone

Live updates comments and jobs are added and updated live.
Sign in to follow issues

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