Aller au contenu principal
Version: 26.0.10.0

Blocs Gutenberg

Elementum fournit une CLI et des outils pour créer des blocs Gutenberg personnalisés facilement.

📚 Sections​

💡 Exemple​

# Créer un bloc avec la CLI
php dobby make:block hero
// app/Blocks/HeroBlock.php
#[Block('hero')]
class HeroBlock {
    public function render(array $attributes): string {
        return $this->render('blocks/hero.html.twig', $attributes);
    }
}

🔗 Liens utiles​