[Symfony 6][Second try] A number of methods of the class Drupal\Core\TypedData\Validation\ExecutionContext are considered internal and Drupal should not override them.

Created on 13 January 2022, almost 3 years ago
Updated 11 April 2023, over 1 year ago

Problem/Motivation

The "Symfony\Component\Validator\Context\ExecutionContextInterface::setNode()" method is considered internal Used by the validator engine. Should not be called by user code. It may change without further notice. You should not extend it from "Drupal\Core\TypedData\Validation\ExecutionContext".

The "Symfony\Component\Validator\Context\ExecutionContextInterface::setGroup()" method is considered internal Used by the validator engine. Should not be called by user code. It may change without further notice. You should not extend it from "Drupal\Core\TypedData\Validation\ExecutionContext".

The "Symfony\Component\Validator\Context\ExecutionContextInterface::setConstraint()" method is considered internal Used by the validator engine. Should not be called by user code. It may change without further notice. You should not extend it from "Drupal\Core\TypedData\Validation\ExecutionContext".

The "Symfony\Component\Validator\Context\ExecutionContextInterface::markConstraintAsValidated()" method is considered internal Used by the validator engine. Should not be called by user code. It may change without further notice. You should not extend it from "Drupal\Core\TypedData\Validation\ExecutionContext".

The "Symfony\Component\Validator\Context\ExecutionContextInterface::isConstraintValidated()" method is considered internal Used by the validator engine. Should not be called by user code. It may change without further notice. You should not extend it from "Drupal\Core\TypedData\Validation\ExecutionContext".

The "Symfony\Component\Validator\Context\ExecutionContextInterface::markGroupAsValidated()" method is considered internal Used by the validator engine. Should not be called by user code. It may change without further notice. You should not extend it from "Drupal\Core\TypedData\Validation\ExecutionContext".

The "Symfony\Component\Validator\Context\ExecutionContextInterface::isGroupValidated()" method is considered internal Used by the validator engine. Should not be called by user code. It may change without further notice. You should not extend it from "Drupal\Core\TypedData\Validation\ExecutionContext".

The "Symfony\Component\Validator\Context\ExecutionContextInterface::markObjectAsInitialized()" method is considered internal Used by the validator engine. Should not be called by user code. It may change without further notice. You should not extend it from "Drupal\Core\TypedData\Validation\ExecutionContext".

The "Symfony\Component\Validator\Context\ExecutionContextInterface::isObjectInitialized()" method is considered internal Used by the validator engine. Should not be called by user code. It may change without further notice. You should not extend it from "Drupal\Core\TypedData\Validation\ExecutionContext".

We cannot just remove the methods, because we are implementing the interface. Maybe we can in D10.0.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

📌 Task
Status

Active

Version

10.1

Component
Typed data 

Last updated 16 days ago

  • Maintained by
  • 🇦🇹Austria @fago
Created by

🇳🇱Netherlands daffie

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