Skip to main content
Skip to search
Can we use first and third party cookies and web beacons to
understand our audience, and to tailor promotions you see
?
Yes, please
No, do not track me
Drupal.org home
Discover Drupal
Drupal Core
Drupal CMS
Drupal AI
Case Studies
Drupal for Government
Drupal for Higher Education
Drupal for Nonprofit
Drupal for eCommerce
Drupal for FinTech
Drupal for Healthcare
Drupal for Enterprise
Drupal for Retail
Drupal for Travel & Tourism
Build with Drupal
Download Drupal
Documentation
Getting started
Local Development Guide
Developer Resources
Drupal CMS User Guide
Drupal User Guide
API
Modules
Themes
Recipes
Site Templates
Issue queues
Security Advisories
Partners & Services
Find a Drupal Certified Partner
Become a Drupal Certified Partner
Find a Hosting Provider
Find a Migration Partner
Find Training
Drupal Steward
Community
About the Community
How to Contribute
DrupalCon
Events
Jobs / Careers
News & Blogs
Forum
Slack
Newsletters
Drupal Swag Shop
Support Drupal
The Drupal Association
Donate
Become a Partner
Become a Ripple Maker
Become a Drupal Sustaining Member
Drupal Swag Shop
Get Started
Try Drupal CMS
Try Hosting
Return to content
Search form
Search
Log in
Create account
Community projects
Coding Standards
Change records for Coding Standards
Primary tabs
Published
(active tab)
Draft & review
Add new change record
Keywords
Introduced in branch
Introduced in version
Change node created
Is less than
Is less than or equal to
Is equal to
Is not equal to
Is greater than or equal to
Is greater than
Is between
Is not between
Is empty (NULL)
Is not empty (NOT NULL)
Regular expression
And
Impacts
Site builders, administrators, editors
Module developers
Themers
Site templates, recipes and distribution developers
Introduced in branch/version
Notice created
Change
04-Mar-2026
Trait names should always have the the suffix "Trait"
17-Feb-2026
Doxygen for @var, @param and @return is optional when type and variable name is enough
20-May-2025
Data types must be compliant with the PHPDoc Type syntax as documented by PHPStan
20-May-2025
Coding standards now require a colon after case statements
06-Feb-2025
The "short ternary" operator "?:" must be used where the first operand of a ternary expression matches the condition
27-Nov-2024
Use UpperCamelCase for enum and enum case values
08-May-2024
Use null coalescing Operator ?? to replace isset with ternary operator
06-Mar-2024
Argument lists for function declarations may be split across multiple lines
11-Dec-2023
New coding standard: Code style for declare(strict_types=1);
10.1.x / 10.1.0
10-Nov-2023
Comment docblocks for constructors
Subscribe with RSS