Validation added
1 open thread
Closes #3458321
Merge request reports
Activity
249 * @param \Symfony\Component\Validator\Context\ExecutionContextInterface $context 250 * The validation execution context. 251 * 252 * @see \Symfony\Component\Validator\Constraints\CallbackValidator 253 * @see core/modules/language/config/schema/language.schema.yml 254 */ 255 public static function validateId(string $value, ExecutionContextInterface $context): void { 256 $config_being_validated = $context->getRoot(); 257 $target_entity_type_id = $config_being_validated->get('target_entity_type_id')->getValue(); 258 $target_bundle = $config_being_validated->get('target_bundle')->getValue(); 259 if ($target_entity_type_id . '.' . $target_bundle !== $value) { 260 $context->addViolation('The id %value must be a combination of $target_entity_type_id.$target_bundle.', [ 261 '%value' => $value, 262 ]); 263 } 264 } changed this line in version 3 of the diff
added 16 commits
-
a2f37796...9ddbc2c7 - 13 commits from branch
project:11.x
- bb0d39d3 - Validation added
- e3c4acf1 - phpcs
- f041a736 - Removed unnecessary validation
Toggle commit list-
a2f37796...9ddbc2c7 - 13 commits from branch
Please register or sign in to reply