Skip to content

Instantly share code, notes, and snippets.

@gcordner
gcordner / drupal11-ddev.txt
Created December 15, 2024 04:14
Drupal setup using ddev
Start from the projects folder. Let's suppose this project will be called drupal11
composer create-project drupal/recommended-project:^11 drupal11
cd ~/Projects/drupal11
ddev config --project-type=drupal10 --docroot=web --php-version=8.3
ddev start
ddev launch
<?php
/**
* Render columns block with extra class
*
* @param string $block_content The block content about to be rendered.
* @param array $block The full block, including name and attributes.
* @return string
*/
function render_columns_block_class( $block_content, $block ) {