One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
for i in `git branch -a |grep remotes |awk '{print $1}' | cut -d"/" -f 3,4,5 |grep -v ^master$ |grep -v ^HEAD$`; do echo "`git log -1 --pretty=format:\"%an (%ae)\" origin/$i`|$i"; done |sort > /tmp/branches.csv |
Behat Drupal Extension
https://drupal.org/project/drupalextension
http://dspeak.com/drupalextension/
https://github.com/Behatch/contexts/blob/master/src/Context/BrowserContext.php
Saucelabs integration module
https://github.com/alnutile/behat_editor/tree/master/modules
Make sure these boxes are checked before submitting/approving the PR
<?php | |
/** | |
* @file | |
* Contains \Drupal\hello_world\Form\AddAnotherItem. | |
*/ | |
namespace Drupal\hello_world\Form; | |
use Drupal\Core\Form\FormBase; | |
use Drupal\Core\Form\FormStateInterface; |
#!/bin/sh | |
url="https://ftp.drupal.org/files/projects/drupal-7.59.zip"; | |
if curl --output /dev/null --silent --head --fail "$url"; then | |
echo "URL exists: $url"; | |
else | |
echo "URL does not exist: $url"; | |
fi; | |
url="https://ftp.drupal.org/files/projects/drupal-8.5.3.zip"; |
<?php | |
$url = Url::fromRoute('node.add', array('node_type' => $content_type)); | |
$url->setOption('query', \Drupal::destination()->getAsArray(),); | |
$link = [ | |
'#type' => 'link', | |
'#title' => t('Add !content_type content', array('!content_type' => $content_type)), | |
'#url' => $url, | |
'#attributes' => [ |
<?php | |
// Autoload Url and Link classes. | |
use Drupal\Core\Url; | |
use Drupal\Core\Link; | |
/** | |
* External link | |
*/ | |
$url = Url::fromUri('https://colorfield.be'); |
This is the Gist repository for my article Drupal 8 — Differences between Configuration API & State API.
Be aware that this article has been wrote for the Blog of Antistatique — Web Agency in Lausanne, Switzerland. A place where I work as Full Stack Web Developer.
Feel free to read it the full article on Medium or check it out on Antistatique.