Skip to content

Instantly share code, notes, and snippets.

Rachel Lawson rachellawson

Block or report user

Report or block rachellawson

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View mentored-core-sprint.md

Mentored Core Sprint

Learn while helping improve Drupal core! Plenty of mentors will be available to help you get started. If you're not sure where to start contributing, or not even sure about the whole sprint thing, this is for you! This is one of our many sprints. If you are new to contribution, attend our First-time Sprinter Workshop first to set up tools like IRC, Git, and a Drupal 8 development environment, and then join this Mentored Core Sprint. The Mentored Core Sprint has been held at DrupalCon since Sydney 2013 and at many local and regional Drupal events.

Why come

If you're like most Drupal users, you've been telling yourself for months that you should start contributing to Drupal core. This sprint is your chance to get started with in-person training and mentoring from friendly, experienced core contributors. If you've already started to work on core, come meet other contributors, hang out in person, and work on manageable tasks in the Drupal core queue. The goal is to help you help with co

@rachellawson
rachellawson / Mentored-core-sprint.md
Created Oct 4, 2017
Looking at the text for the Mentored Core Sprint
View Mentored-core-sprint.md

Mentored Core Sprint Learn while helping improve Drupal core! Plenty of mentors will be available to help you get started. If you're not sure where to start contributing, or not even sure about the whole sprint thing, this is for you! This is one of our many sprints. If you are new to contribution, attend our First-time Sprinter Workshop first to set up tools like IRC, Git, and a Drupal 8 development environment, and then join this Mentored Core Sprint. The Mentored Core Sprint has been held at DrupalCon since Sydney 2013 and at many local and regional Drupal events. Why come If you're like most Drupal users, you've been telling yourself for months that you should start contributing to Drupal core. This sprint is your chance to get started with in-person training and mentoring from friendly, experienced core contributors. If you've already started to work on core, come meet other contributors, hang out in person, and work on manageable tasks in the Drupal core queue. The goal is to help you help with co

@rachellawson
rachellawson / .circleci_config.yml
Created Jul 7, 2017
CircleCI for Drupal 8 and Behat
View .circleci_config.yml
version: 2
jobs:
build:
docker:
- image: circleci/php:7.1-apache-browsers
working_directory: ~/working
steps:
- checkout
- run:
@rachellawson
rachellawson / POIExperienceEntityForm.php
Created Feb 20, 2017
How I am checking to make sure I use the same bundle type on a poi_experience_entity as that of the poi_entity it will be referencing
View POIExperienceEntityForm.php
<?php
namespace Drupal\destinations\Form;
use Drupal\Core\Entity\ContentEntityForm;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Routing\RouteMatchInterface;
/**
* Form controller for Point of Interest Experience Entity edit forms.
View letter to Henry Bellingham
Attn: Henry Bellingham MP
North West Norfolk
Sunday 29 January 2017
Dear Henry Bellingham,
I write to you today in a state of fear and uncertainty for my, and my friends, colleagues and neighbours, future.
@rachellawson
rachellawson / migrate_plus.migration.csv_border_crossings.yml
Created Jan 13, 2017
and another that includes a geolocation field - needed to work out how to get the data into the non-simple text field
View migrate_plus.migration.csv_border_crossings.yml
uuid: xxx
langcode: en
status: true
dependencies: { }
_core:
default_config_hash: QgJp0h7W6HJQxNOodE0hlFp_epwmjzGKWCkBZic7e3s
id: csv_border_crossings
migration_tags:
- CSV
migration_group: null
@rachellawson
rachellawson / migrate_plus.migration.csv_migrate_story.yml
Created Jan 13, 2017
a collection of migrations - i this case to make some groups, group_content and content entities from a csv and a json. The json is read twice; once to create the content entities and then again to create the group_content entities joining them to the right group
View migrate_plus.migration.csv_migrate_story.yml
uuid: xxx
langcode: en
status: true
dependencies: { }
_core:
default_config_hash: wQBGyxU9I0xkvmhVOYPTI8xAPDRmQqHJRGcumgEen0w
id: csv_migrate_story
migration_tags:
- CSV
migration_group: mt_stories
View DestinationEntity.php
<?php
namespace Drupal\destinations\Entity;
use Drupal\Core\Entity\EntityStorageInterface;
use Drupal\Core\Field\BaseFieldDefinition;
use Drupal\Core\Entity\RevisionableContentEntityBase;
use Drupal\Core\Entity\EntityChangedTrait;
use Drupal\Core\Entity\EntityTypeInterface;
use Drupal\user\UserInterface;
@rachellawson
rachellawson / DestinationEntity.php
Created Jan 6, 2017
just for NikLP - how I made the base fields
View DestinationEntity.php
<?php
namespace Drupal\destinations\Entity;
use Drupal\Core\Entity\EntityStorageInterface;
use Drupal\Core\Field\BaseFieldDefinition;
use Drupal\Core\Entity\RevisionableContentEntityBase;
use Drupal\Core\Entity\EntityChangedTrait;
use Drupal\Core\Entity\EntityTypeInterface;
use Drupal\user\UserInterface;
@rachellawson
rachellawson / social_commentary_js_facebook-comment.js
Created Nov 16, 2016
Getting all that facebook comment malarkey off into a tab, that only appears when the field_facebook_comment field on the node is true.
View social_commentary_js_facebook-comment.js
(function ($) {
Drupal.behaviors.facebook_comment = Drupal.behaviors.facebook_comment || {
attach: function (context, settings) {
(function (d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s);
js.id = id;
js.src = "//connect.facebook.net/en_GB/sdk.js#xfbml=1&version=v2.8";
fjs.parentNode.insertBefore(js, fjs);
You can’t perform that action at this time.