Skip to content

Instantly share code, notes, and snippets.

diff --git a/core/scripts/run-tests.sh b/core/scripts/run-tests.sh
index 15e6e80..987e324 100755
--- a/core/scripts/run-tests.sh
+++ b/core/scripts/run-tests.sh
@@ -641,10 +641,11 @@ function simpletest_script_execute_batch($test_classes) {
if (empty($status['running'])) {
// The child exited, unregister it.
proc_close($child['process']);
- if ($status['exitcode'] === SIMPLETEST_SCRIPT_EXIT_FAILURE) {
- $total_status = max($status['exitcode'], $total_status);
diff --git a/entity_browser.links.action.yml b/entity_browser.links.action.yml
index ec70619..7e205c2 100644
--- a/entity_browser.links.action.yml
+++ b/entity_browser.links.action.yml
@@ -1,5 +1,5 @@
media.bundle_add:
- route_name: media.bundle_add
+ route_name: entity.media_bundle.add_form
title: 'Add media bundle'
appears_on:
@dawehner
dawehner / Test.json
Last active July 31, 2016 09:07 — forked from anonymous/Test.json
JSON Decoder
[
{
"typeID":35,
"regionID":10000011,
"orders":[
{
"volRemaining":95050881,
"volEntered":100000000,
"range":32767,
"price":3.03,
'body/format':
plugin: default_value
default_value: 'html'
'body/value': body
'body/summary': teaser
diff --git a/core/modules/migrate/src/Plugin/migrate/destination/EntityContentBase.php b/core/modules/migrate/src/Plugin/migrate/destination/EntityContentBase.php
index 6a2fb98..3617f38 100644
--- a/core/modules/migrate/src/Plugin/migrate/destination/EntityContentBase.php
+++ b/core/modules/migrate/src/Plugin/migrate/destination/EntityContentBase.php
@@ -7,6 +7,7 @@
use Drupal\Core\Entity\EntityManagerInterface;
use Drupal\Core\Entity\EntityStorageInterface;
use Drupal\Core\Field\FieldTypePluginManagerInterface;
+use Drupal\Core\TypedData\TranslatableInterface;
use Drupal\Core\TypedData\TypedDataInterface;
<?php
/*
+----------------------------------------------------------------------+
| APC |
+----------------------------------------------------------------------+
| Copyright (c) 2006-2011 The PHP Group |
+----------------------------------------------------------------------+
| This source file is subject to version 3.01 of the PHP license, |
| that is bundled with this package in the file LICENSE, and is |
| available through the world-wide-web at the following url: |
import Html exposing (Html, div, text)
import Html.App as Html
exampleBroadcast : Broadcast
exampleBroadcast = Broadcast
{ title = "Nachrichten", link = "http://www.deutschlandfunk.de/die-nachrichten.353.de.html", pudDate = "Mon, 04 Jul 2016 00:00:00 +0200" }
init : Model
init = { broadcasts = [] }
#!/bin/bash
# http://github.com/w00fz/xdebug-osx
command="$1"
php_version_dot=$(php -r "\$v=explode('.', phpversion() ); echo implode('.', array_splice(\$v, 0, -1));")
php_version="${php_version_dot//./}"
xdebug_conf_path="/usr/local/etc/php/$php_version_dot/conf.d"
xdebug_conf_file="ext-xdebug.ini"
#!/bin/bash
xdebug-toggle off
sudo rm -rf sites/default/files/*
sudo cp sites/default/default.settings.php sites/default/settings.php
sudo chmod 0777 sites/default/settings.php
sudo touch sites/default/services.yml
sudo chmod 0777 sites/default/services.yml
rm -Rf vendor
function fish_right_prompt
if test $CMD_DURATION
# Store duration of last command
set duration (echo "$CMD_DURATION 1000" | awk '{printf "%.3fs", $1 / $2}')
# OS X notification when a command takes longer than notify_duration
set notify_duration 10000
set exclude_cmd "zsh|bash|less|man|more|ssh|drush php"
if begin
test $CMD_DURATION -gt $notify_duration