data->toArray(); $settings = $block->settings?->toArray() ?? []; return [ 'component' => 'cms/hero', 'data' => [ 'title' => $data['title'] ?? '', 'subtitle' => $data['subtitle'] ?? null, 'backgroundImage' => $data['backgroundImage'] ?? $data['background_image'] ?? null, 'ctaText' => $data['ctaText'] ?? $data['cta_text'] ?? null, 'ctaLink' => $data['ctaLink'] ?? $data['cta_link'] ?? null, 'fullWidth' => $settings['fullWidth'] ?? $settings['full_width'] ?? false, 'padding' => $settings['padding'] ?? 'medium', ], ]; } public function supports(string $blockType): bool { return $blockType === BlockType::HERO; } }