Skip to content

Instantly share code, notes, and snippets.

View mlncn's full-sized avatar

Benjamin Melançon mlncn

View GitHub Profile
@mlncn
mlncn / blt.yml
Created December 13, 2022 08:34
BLT yaml
# This file contains your BLT configuration. For a list of all available
# properties with current values run `blt config:dump`. Default values come
# from vendor/acquia/blt/config/build.yml.
#
# These values can be overridden at the command line using `--define`, i.e.:
# blt setup --define project.profile.name=minimal
#
# However, when tokens in this file are expanded, they will not use any such
# command-line overrides. For instance, `blt sync --define drush.aliases.local`
# will not modify `drush.default_alias`, even though `drush.default_alias` is
Running bash [-c /tmp/test_ddev.sh]
======= Existing project config =========
These config files were loaded for project refer-laaha: [/home/mlncn/Projects/github/unicef/refer-laaha/.ddev/config.yaml]
name: refer-laaha
type: drupal9
docroot: docroot
php_version: 8.1
webserver_type: apache-fpm
webimage: drud/ddev-webserver:v1.21.4
router_http_port: 80
======== Existing project config ========
ddev installation alternate locations:
/run/current-system/sw/bin/ddev
These config files were loaded for project drupal-pece: [/home/mlncn/Projects/github/PECE-project/drupal-pece/.ddev/config.yaml]
name: drupal-pece
type: drupal
docroot: web
php_version: 8.3
webserver_type: nginx-fpm
AdapterDeviceID: 0x15bf
AdapterDriverVendor: mesa/radeonsi
AdapterDriverVersion: 24.3.2.0
AdapterVendorID: 0x1002
Add-ons: formautofill%40mozilla.org:1.0.1,pictureinpicture%40mozilla.org:1.0.0,webcompat-reporter%40mozilla.org:2.1.0,webcompat%40mozilla.org:133.4.0,default-theme%40mozilla.org:1.4.1,addons-search-detection%40mozilla.com:2.0.0
AvailablePageFile: 42366246912
AvailablePhysicalMemory: 5695295488
AvailableSwapMemory: 89993023488
AvailableVirtualMemory: 27387207680
BackgroundTaskMode: 0
@mlncn
mlncn / nicaragua.module
Last active February 4, 2025 03:10 — forked from dinarcon/nicaragua.module
Conditional fields in Paragraphs using the Javascript States API for modern Drupal
/**
* @file
* Example code from https://agaric.coop/blog/conditional-fields-paragraphs-using-javascript-states-api-modern-drupal
*/
/**
* Implements hook_field_widget_single_element_WIDGET_TYPE_form_alter().
*
* Example of conditional fields in paragraphs for modern Drupal (10, 11, .
*/