Open joachim-n opened 1 year ago
MutableData needs:
/**
* {@inheritdoc}
*/
public function import($value) {
// Bail silently if setting the variant would fail.
if (empty($value[$this->typePropertyName])) {
return;
}
$mapping = $this->definition->getVariantMapping();
if (!isset($mapping[$value[$this->typePropertyName]])) {
return;
}
parent::import($value);
}
and tests obv!
Docs for import() say it won't throw exceptions, but it does for bad variant values: