This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Drupal\tea_teks_srp\Form; | |
use Drupal\Core\Entity\EntityInterface; | |
use Drupal\Core\Form\FormBase; | |
use Drupal\Core\Form\FormStateInterface; | |
use Drupal\Core\Ajax\CloseModalDialogCommand; | |
use Drupal\Core\Ajax\CloseDialogCommand; | |
use Drupal\Core\Ajax\AjaxResponse; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
default: | |
suites: | |
default: | |
contexts: | |
- FeatureContext | |
- Drupal\DrupalExtension\Context\MinkContext | |
gherkin: | |
cache: ~ | |
extensions: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Reads a CSV file in chunks of 10 lines at a time | |
and returns them in an array of objects for processing. | |
Assumes the first line of the CSV file has headings | |
that will be used as the object name for the item you are | |
processing. i.e. the heading is CurrentURL then refer to | |
$item->CurrentURL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
# Available `vagrant_box` values include: | |
# - beet/box (pre-provisioned, based on Ubuntu 16.04) | |
# - geerlingguy/centos7 | |
# - geerlingguy/centos6 | |
# - geerlingguy/debian9 | |
# - geerlingguy/debian8 | |
# - geerlingguy/ubuntu1604 | |
# - geerlingguy/ubuntu1404 | |
vagrant_box: geerlingguy/ubuntu1604 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Constructor. | |
* | |
* A Migration constructor takes an array of arguments as its | |
* first parameter. The arguments must be passed through to the parent | |
* constructor. | |
* | |
* @param array $arguments | |
* Arguments | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
(function(dataLayer, $) { | |
var reachedBottom = false; | |
//returns true if view is at or below element | |
function scrolledToBottom(elem) { | |
var $elem = $(elem); | |
if ($elem.length > 0) { | |
var $window = $(window); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript"> | |
// This code loads the IFrame Player API code asynchronously. | |
(function GtmVideoTracker(){ | |
var tag = document.createElement('script'); | |
var firstScriptTag = document.getElementsByTagName('script')[0]; | |
window.GTMplayers = window.GTMplayers || []; | |
tag.src = "https://www.youtube.com/iframe_api"; | |
firstScriptTag.parentNode.insertBefore(tag, firstScriptTag); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Migration configuration for recipe content. | |
id: recipe_node | |
label: Recipes from Sage | |
migration_group: recipe | |
source: | |
plugin: wfm_migrate_recipe | |
destination: | |
plugin: entity:node | |
process: | |
# Hardcode the destination node type (bundle) as 'migrate_example_recipe'. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This is a test |