Skip to content

Instantly share code, notes, and snippets.

View brooke-heaton's full-sized avatar

Brooke Heaton brooke-heaton

  • NASWA
  • Asheville, Cackalacky
View GitHub Profile
@wesruv
wesruv / .lando.yml
Last active February 17, 2020 20:01
Lando config for a Drupal 7 site with Compass Sass
name: mydrupalprojectwithcompass
recipe: drupal7
config:
webroot: docroot
php: '5.6'
database: mysql:5.7
xdebug: true
events:
post-db-import:
- appserver: cd $LANDO_WEBROOT/sites/default && drush rr
@neclimdul
neclimdul / D6FlagBookmarks.php
Created September 27, 2018 17:31
d6_node_flag
<?php
namespace Drupal\my_migration\Plugin\migrate\source;
use Drupal\migrate\Plugin\migrate\source\SqlBase;
/**
* Migrate flags from d6 -> d8.
*
* @MigrateSource(
/**
* Implements hook_requirements().
*/
function CUSTOM_requirements($phase) {
// Only check requirements during the run-time (aka Status Report).
if ($phase != 'runtime') {
return [];
}
$requirements = [];