lib/Serializer/Normalizer/V1/LayoutTypeNormalizer.php
private function getZones(LayoutTypeInterface $layoutType): Generator
    {
        foreach ($layoutType->getZones() as $zone) {
            $allowedBlockDefinitions = $zone->getAllowedBlockDefinitions();

            yield [
                'identifier' => $zone->getIdentifier(),
                'name' => $zone->getName(),
                'allowed_block_definitions' => count($allowedBlockDefinitions) > 0 ?
                    $allowedBlockDefinitions :
                    true,
            ];
        }
    }
private function getZones(LayoutTypeInterface $layoutType): Generator
    {
        foreach ($layoutType->getZones() as $zone) {
            $allowedBlockDefinitions = $zone->getAllowedBlockDefinitions();

            yield [
                'identifier' => $zone->getIdentifier(),
                'name' => $zone->getName(),
                'allowed_block_definitions' => count($allowedBlockDefinitions) > 0 ?
                    $allowedBlockDefinitions :
                    true,
            ];
        }
    }
private function getZones ( LayoutTypeInterface $ layoutType ) : Generator { foreach ( $ layoutType -> getZones ( ) as $ zone ) { $ allowedBlockDefinitions = $ zone -> getAllowedBlockDefinitions ( ) ; yield [ 'identifier' => $ zone -> getIdentifier ( ) , 'name' => $ zone -> getName ( ) , 'allowed_block_definitions' => count ( $ allowedBlockDefinitions ) > 0 ? $ allowedBlockDefinitions : true , ] ; } }
Returns the array with layout type zones.
Returns the array with layout type zones .