Download DrupalConsole
curl https://drupalconsole.com/installer -L -o drupal.phar
Make DrupalConsole globaly accesible
$ mv console.phar /usr/local/bin/drupal
#!/bin/bash | |
function drupal-install() { | |
sudo rm -rf sites/default; | |
sudo git checkout -- sites/default; | |
sudo chmod -R 777 sites/default; | |
sudo chown -R `whoami` sites/default; | |
sudo git checkout -- sites/default; | |
sudo chown -R `whoami` sites/default; | |
#exit; |
#!/bin/bash | |
# Author: Luigi Guevara <@killua99> | |
# | |
# Use | |
# For a Simple Tag changelog | |
# ./changelog > CHANGELOG.txt | |
# | |
# For a current dev branch with the old tag log | |
# ./changelog 7.x-2.x > CHANGELOG.txt |
#!/bin/bash | |
# Check arguments and requirements. | |
if [ ${#@} -lt 1 ]; then | |
echo "This script expects one argument (site machine name)." | |
exit 1 | |
fi | |
if [ -x ${HOME}/.my.cnf ]; then | |
echo "This script requires ${HOME}/.my.cnf." |
#!/bin/sh | |
export XDEBUG_CONFIG="idekey=PHPSTORM" | |
php bin/phpspec run |
curl https://drupalconsole.com/installer -L -o drupal.phar
$ mv console.phar /usr/local/bin/drupal
<?php | |
// NOTE This has been moved to https://www.drupal.org/project/upgradepath | |
/** | |
* @file | |
* Runs a set of steps to upgrade a database to be in line with code. | |
*/ | |
/** | |
* Implements hook_drush_command(). |
Drupal8 is pretty awesome, but its a problem that you cant choose fromt the ui which template to use. Sure you can overwrite whats there (node--article.html.twig) but that dont give the end user a chance to later change in the site & can end up in even more templates & clutter.
Make it easy to provide a template suggestion for entities, blocks, pages, nodes, fields, menues, username, everything that have a template you should be able to give a suggestion.
A prepopulated list of classes that can be selected for a template.
The modules userbase is sitebuilders & themes that wants to provide variations for a site, developers dont have to provide templates after a site is build, and can rely on the theme to provide all the variations.
(function($){ | |
$.fn.extend({ | |
example: function(options) { | |
var defaults = { | |
color: '#000000', | |
} | |
#!/bin/bash | |
cd drupal | |
sudo rm -fr vendor | |
composer install | |
sudo chmod 777 sites/default | |
cd sites/default | |
rm -fr settings.php services.yml | |
# for developers only (sets up some dev mode settings, do this before install!) | |
cp ../example.settings.local.php ./settings.local.php | |
# for everyone |
This script helps you to test OAuth-signed requests against Drupal 8.
First, make sure that Drupal has been configured by following the steps at https://www.drupal.org/node/2110825. Then install this script with these steps:
consumer_key
and consumer_secret
. Then Adjust base_uri
.php oauth_request.php
.