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,
            ];
        }
    }