2 declare(strict_types = 1);
43 $dto = $this->validationDto->withPropertyPath($key);
46 if ($this->
getConfigurationService()->propertyCollectionPropertyHasLimitedAllowedValuesDefinedWithinFormEditorSetup($dto)) {
56 $this->currentElement,
79 if ($value !== $predefinedDefaultValue) {
80 $throwException =
true;
82 if (is_string($predefinedDefaultValue)) {
89 $untranslatedPredefinedDefaultValue,
93 if (in_array($value, $translations,
true)) {
94 $throwException =
false;
98 if ($throwException) {
99 $message =
'The value "%s" of property "%s" (form element "%s" / "%s.%s") is not equal to the default value "%s" #1528591502';
108 $predefinedDefaultValue
130 if (!in_array($value, $allowedValues,
true)) {
133 if (in_array($value, $untranslatedAllowedValues,
true)) {
141 $untranslatedAllowedValues,
145 foreach ($allPossibleAllowedValuesTranslations as $translations) {
146 if (in_array($value, $translations,
true)) {
160 $this->currentElement,