This assumes you are using a Drupal 8 or Drupal 9 recipe and Mac OS. Also, xdebug 3.x is assumed, which is standard for Lando-provided PHP image.
Example .lando.yml file can look like this:
name: xdebug-test
recipe: drupal8
config:
webroot: web| // open your javascript console and paste this | |
| copy([...$('[role="grid"]')[Object.keys($('[role="grid"]')).filter(x => x.startsWith('__reactProps'))[0]].children[0].props.values[0][1].collection].filter(x => x.value.audio_url).map(x => x.value.audio_url).join(' ')) | |
| // now you have a list of mp3 urls directly in your clipboard that you can pass to wget or a url downloader |
| <?php | |
| use Drupal\paragraphs\Entity\Paragraph; | |
| /** | |
| * Implements template_preprocess_node | |
| * | |
| * Add variables for paragraphs available to node templates | |
| */ | |
| function CUSTOM_preprocess_node(&$variables) { | |
| // Convenience Variables |
| <?php | |
| namespace Drupal\custom_layout\Plugin\Layout; | |
| use Drupal\Core\Form\FormStateInterface; | |
| use Drupal\Core\Layout\LayoutDefault; | |
| use Drupal\Core\Plugin\PluginFormInterface; | |
| /** | |
| * Configurable two column layout plugin class. |
| {"lastUpload":"2020-10-01T13:18:46.865Z","extensionVersion":"v3.4.3"} |
| #!/usr/bin/env bash | |
| # Place this in your project at /.docksal/commands and call this file rvm, the name should match the command. | |
| # Run this script as fin rvm. | |
| # Install RVM and dependancies, activate and source it, choose the version. | |
| # These two lines are needed to have a valid RVM install | |
| fin exec bash -c "curl -#LO https://rvm.io/mpapis.asc" |
| - name: home | |
| category: app | |
| - name: sign-out | |
| category: app | |
| - name: sign-in | |
| category: app | |
| - name: user | |
| category: app | |
| - name: users | |
| category: app |
| {% for item in items %} | |
| {{ item.content }} | |
| {% endfor %} |
| // Include gulp | |
| var gulp = require('gulp'); | |
| // Include plugins | |
| var jshint = require('gulp-jshint'), | |
| plumber = require('gulp-plumber'), | |
| sass = require('gulp-sass'), | |
| spritesmith = require('gulp.spritesmith'), | |
| uglify = require('gulp-uglify'), | |
| concat = require('gulp-concat'), |