Skip to content

Instantly share code, notes, and snippets.

View mariacha's full-sized avatar

Maria Fisher mariacha

View GitHub Profile
@mariacha
mariacha / custom_twig.info.yml
Created January 24, 2019 16:25
Custom Twig functions Drupal 8
name: Custom twig
type: module
description: Custom Twig functions
core: 8.x
package: Custom
@mariacha
mariacha / .probo.yml
Created November 14, 2016 17:50
Upgrading Probo instance php version to 5.6 for Drupal 8.x
- name: Upgrade to php 5.6
plugin: Script
script: |
sudo apt-get update
sudo apt-get install -y software-properties-common language-pack-en-base
LC_ALL=en_US.UTF-8 add-apt-repository ppa:ondrej/php
LC_ALL=en_US.UTF-8 add-apt-repository ppa:ondrej/apache2
apt-get update
sudo apt-get install -y php5.6 php5.6-mbstring php5.6-mcrypt php5.6-mysql php5.6-xml php5.6-gd php5.6-curl php5.6-json php5.6-imagick php5.6-dev php5.6-gmp
sudo a2dismod php5
@mariacha
mariacha / FeatureContext.php
Last active August 29, 2015 14:08
Behat Drupal setup for Field Collection
<?php
/**
* @file
* Project-specific functions
*/
use Behat\Behat\Context\ClosuredContextInterface,
Behat\Behat\Context\TranslatedContextInterface,
Behat\Behat\Context\BehatContext,