2 declare(strict_types = 1);
42 $dto = $this->validationDto->withPropertyPath($key);
45 if ($this->
getConfigurationService()->formElementPropertyHasLimitedAllowedValuesDefinedWithinFormEditorSetup($dto)) {
55 $this->currentElement,
78 if ($value !== $predefinedDefaultValue) {
79 $throwException =
true;
81 if (is_string($predefinedDefaultValue)) {
96 $untranslatedPredefinedDefaultValue,
100 if (in_array($value, $translations,
true)) {
101 $throwException =
false;
105 if ($throwException) {
106 $message =
'The value "%s" of property "%s" (form element "%s") is not equal to the default value "%s" #1528588035';
113 $predefinedDefaultValue
135 if (!in_array($value, $allowedValues,
true)) {
138 if (in_array($value, $untranslatedAllowedValues,
true)) {
146 $untranslatedAllowedValues,
150 foreach ($allPossibleAllowedValuesTranslations as $translations) {
151 if (in_array($value, $translations,
true)) {
165 $this->currentElement,