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

The DataDefinitionInterface is missing setConstraints method

$
0
0

Problem/Motivation

The interface \Drupal\Core\TypedData\DataDefinitionInterface is missing the setConstraints() method that is defined in the \Drupal\Core\TypedData\DataDefinition::setConstraints even with the {@inheritdoc} tag. The method is present in the \Drupal\Core\Field\FieldConfigInterface::setConstraints for example, and I think it should be moved to the DataDefinitionInterface instead.

Proposed resolution

Add the setConstraints method to \Drupal\Core\TypedData\DataDefinitionInterface.

Remaining tasks

Add the setConstraints method to \Drupal\Core\TypedData\DataDefinitionInterface.
Remove the setConstraints method from \Drupal\Core\Field\FieldConfigInterface::setConstraints

User interface changes

None

API changes

\Drupal\Core\TypedData\DataDefinitionInterface

Data model changes

None


Viewing all articles
Browse latest Browse all 294806

Trending Articles