Docs on return type on two media constraints are misleading

Created on 16 June 2023, over 1 year ago
Updated 5 December 2023, about 1 year ago

Problem/Motivation

\Drupal\media\MediaSourceFieldConstraintsInterface::getSourceFieldConstraints says the return type should be

* @return \Symfony\Component\Validator\Constraint[]
   *   An array of validation constraint definitions, keyed by constraint name.
   *   Each constraint definition can be used for instantiating
   *   \Symfony\Component\Validator\Constraint objects.

But actually, its an array where the keys are validation plugin IDs and the values are options for the plugin.

Steps to reproduce

Proposed resolution

Update the documentation

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

๐Ÿ› Bug report
Status

Fixed

Version

10.1 โœจ

Component
Mediaย  โ†’

Last updated about 22 hours ago

Created by

๐Ÿ‡ฆ๐Ÿ‡บAustralia larowlan ๐Ÿ‡ฆ๐Ÿ‡บ๐Ÿ.au GMT+10

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

Production build 0.71.5 2024