Deprecate passing options array to all constraint plugin parameters

Created on 30 October 2025, 10 days ago

Problem/Motivation

Symfony deprecated passing an array of options to their constraint classes. In 📌 Passing a $options array to constraint constructors is deprecated, use named arguments instead Postponed , passing an array of options to Drupal constraint plugins that were subclasses of those constraints was deprecated.

To align with the Symfony efforts, passing an array of options to any Drupal constraint plugin should be deprecated. In addition, passing anything other than associative array to addConstraint() should be deprecated as well.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

📌 Task
Status

Active

Version

11.0 🔥

Component

typed data system

Created by

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.

No activities found.

Production build 0.71.5 2024