lib/Core/Validator/LayoutResolverValidator.php
public function validateTargetUpdateStruct(Target $target, TargetUpdateStruct $targetUpdateStruct): void
    {
        $targetType = $target->getTargetType();

        $this->validate(
            $targetUpdateStruct->value,
            $targetType->getConstraints(),
            'value'
        );
    }
public function validateTargetUpdateStruct(Target $target, TargetUpdateStruct $targetUpdateStruct): void
    {
        $targetType = $target->getTargetType();

        $this->validate(
            $targetUpdateStruct->value,
            $targetType->getConstraints(),
            'value'
        );
    }
public function validateTargetUpdateStruct ( Target $ target , TargetUpdateStruct $ targetUpdateStruct ) : void { $ targetType = $ target -> getTargetType ( ) ; $ this -> validate ( $ targetUpdateStruct -> value , $ targetType -> getConstraints ( ) , 'value' ) ; }
Validates the provided target update struct.

@throws \Netgen\BlockManager\Exception\Validation\ValidationException If the validation failed
Validates the provided target update struct .