bundles/BlockManagerBundle/DependencyInjection/CompilerPass/Layout/LayoutTypePass.php
private function validateLayoutTypes(array $layoutTypes, array $blockDefinitions): void
    {
        foreach ($layoutTypes as $layoutType => $layoutTypeConfig) {
            foreach ($layoutTypeConfig['zones'] as $zoneConfig) {
                foreach ($zoneConfig['allowed_block_definitions'] as $blockDefinition) {
                    if (!isset($blockDefinitions[$blockDefinition])) {
                        throw new RuntimeException(
                            sprintf(
                                'Block definition "%s" used in "%s" layout type does not exist.',
                                $blockDefinition,
                                $layoutType
                            )
                        );
                    }
                }
            }
        }
    }
private function validateLayoutTypes(array $layoutTypes, array $blockDefinitions): void
    {
        foreach ($layoutTypes as $layoutType => $layoutTypeConfig) {
            foreach ($layoutTypeConfig['zones'] as $zoneConfig) {
                foreach ($zoneConfig['allowed_block_definitions'] as $blockDefinition) {
                    if (!isset($blockDefinitions[$blockDefinition])) {
                        throw new RuntimeException(
                            sprintf(
                                'Block definition "%s" used in "%s" layout type does not exist.',
                                $blockDefinition,
                                $layoutType
                            )
                        );
                    }
                }
            }
        }
    }
private function validateLayoutTypes ( array $ layoutTypes , array $ blockDefinitions ) : void { foreach ( $ layoutTypes as $ layoutType => $ layoutTypeConfig ) { foreach ( $ layoutTypeConfig [ 'zones' ] as $ zoneConfig ) { foreach ( $ zoneConfig [ 'allowed_block_definitions' ] as $ blockDefinition ) { if ( ! isset ( $ blockDefinitions [ $ blockDefinition ] ) ) { throw new RuntimeException ( sprintf ( 'Block definition "%s" used in "%s" layout type does not exist.' , $ blockDefinition , $ layoutType ) ) ; } } } } }
Validates layout type config.

@throws \Netgen\BlockManager\Exception\RuntimeException If validation failed
Validates layout type config .