lib/Core/Validator/BlockValidator.php
public function validateBlockUpdateStruct(Block $block, BlockUpdateStruct $blockUpdateStruct): void
    {
        $this->validate(
            $blockUpdateStruct,
            [
                new BlockUpdateStructConstraint(
                    [
                        'payload' => $block,
                    ]
                ),
            ]
        );

        $this->validate(
            $blockUpdateStruct,
            new ConfigAwareStructConstraint(
                [
                    'payload' => $block->getDefinition(),
                    'allowMissingFields' => true,
                ]
            )
        );
    }
public function validateBlockUpdateStruct(Block $block, BlockUpdateStruct $blockUpdateStruct): void
    {
        $this->validate(
            $blockUpdateStruct,
            [
                new BlockUpdateStructConstraint(
                    [
                        'payload' => $block,
                    ]
                ),
            ]
        );

        $this->validate(
            $blockUpdateStruct,
            new ConfigAwareStructConstraint(
                [
                    'payload' => $block->getDefinition(),
                    'allowMissingFields' => true,
                ]
            )
        );
    }
public function validateBlockUpdateStruct ( Block $ block , BlockUpdateStruct $ blockUpdateStruct ) : void { $ this -> validate ( $ blockUpdateStruct , [ new BlockUpdateStructConstraint ( [ 'payload' => $ block , ] ) , ] ) ; $ this -> validate ( $ blockUpdateStruct , new ConfigAwareStructConstraint ( [ 'payload' => $ block -> getDefinition ( ) , 'allowMissingFields' => true , ] ) ) ; }
Validates the provided block update struct.

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