Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 292473

[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.

$
0
0

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


Viewing all articles
Browse latest Browse all 292473

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>