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

DataDefinition::setConstraints() should be on DataDefinitionInterface

$
0
0

While discussing on #2976416: setDefaultValueCallback() & setDefaultValue() should be on FieldDefinitionInterface, not FieldConfigInterface it is noticed that DataDefinition::setConstraints() has {@inheritdoc} which is supposed to come from \Drupal\Core\TypedData\DataDefinitionInterface but setConstraints() method is not added on DataDefinitionInterface.

API page: https://api.drupal.org/api/drupal/core%21lib%21Drupal%21Core%21TypedData...

- Add setConstraints() method on \Drupal\Core\TypedData\DataDefinitionInterface
- Add appropriate docblock for setConstraints() method.


Viewing all articles
Browse latest Browse all 294288

Trending Articles



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