Skip to content

Instantly share code, notes, and snippets.

View kimpepper's full-sized avatar

Kim Pepper kimpepper

View GitHub Profile
@kimpepper
kimpepper / gist:1236689
Created September 23, 2011 03:32
Drush Make file for Drupal 7 demo install profile
; Drupal 7 demo drush make file
core = 7.x
api = 2
projects[] = drupal
projects[d7_demo_profile][type] = profile
projects[d7_demo_profile][download][type] = git
projects[d7_demo_profile][download][url] = "git://github.com/previousnext/d7_demo_profile.git"
@kimpepper
kimpepper / example.make
Created December 1, 2011 01:51
Drush Make file for Drupal 7
; $Id: $
core = "7.x"
api = 2
projects[drupal][type] = "core"
; Contrib projects
projects[backup_migrate][subdir] = "contrib"
projects[context][subdir] = "contrib"
projects[features][subdir] = "contrib"
namespace :drush do
desc "Don't run Drupal database migrations"
task :updatedb, :on_error => :continue do
# no-op
end
end
id: module.toolbar.toolbar
uuid: e55f6e1d-ba89-470d-9901-1fd2fcf5692f
name: toolbar
label: toolbar
breakpoints:
- module.toolbar.narrow
- module.toolbar.standard
- module.toolbar.wide
source: toolbar
sourceType: module
diff --git a/core/modules/breakpoint/lib/Drupal/breakpoint/Plugin/Core/Entity/BreakpointGroup.php b/core/modules/breakpoint/lib/Drupal/breakpoint/Plugin/Core/Entity/BreakpointGroup.php
index 334d2cb..e6c835b 100644
--- a/core/modules/breakpoint/lib/Drupal/breakpoint/Plugin/Core/Entity/BreakpointGroup.php
+++ b/core/modules/breakpoint/lib/Drupal/breakpoint/Plugin/Core/Entity/BreakpointGroup.php
@@ -99,6 +99,30 @@ public function __construct(array $values, $entity_type) {
}
/**
+ * Overrides Drupal\config\ConfigEntityBase::set().
+ *
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>BackgroundColor</key>
<data>
YnBsaXN0MDDUAQIDBAUGFRZYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS
AAGGoKMHCA9VJG51bGzTCQoLDA0OVU5TUkdCXE5TQ29sb3JTcGFjZVYkY2xhc3NPEBEw
IDAgMCAwLjg5OTk5OTk4ABABgALSEBESE1okY2xhc3NuYW1lWCRjbGFzc2VzV05TQ29s
b3KiEhRYTlNPYmplY3RfEA9OU0tleWVkQXJjaGl2ZXLRFxhUcm9vdIABCBEaIy0yNztB
@kimpepper
kimpepper / Vagrantfile
Last active December 15, 2015 14:29
PNX Vagrant file
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
# All Vagrant configuration is done here. The most common configuration
# options are documented and commented below. For a complete reference,
# please see the online documentation at vagrantup.com.
# Every Vagrant virtual environment requires a box to build off of.
config.vm.box = "pnx"
search_view:
pattern: '/search/{module}/{keys}'
defaults:
_controller: 'Drupal\search\Routing\SearchController::searchView'
module: NULL
keys: ''
requirements:
_search_view_access: 'TRUE'
foreach (drupal_container()->get('plugin.manager.system.plugin_ui')->getDefinitions() as $plugin_id => $plugin) {
list($plugin_base, $key) = explode(':', $plugin_id);
if ($plugin_base == 'block_plugin_ui') {
$theme = $themes[$key];
$items['admin/structure/block/list/' . $plugin_id] = array(
'title' => check_plain($theme->info['name']),
'page arguments' => array($key),
'type' => $key == $default_theme ? MENU_DEFAULT_LOCAL_TASK : MENU_LOCAL_TASK,
'access callback' => '_block_themes_access',
'access arguments' => array($key),
@kimpepper
kimpepper / gist:5608723
Created May 19, 2013 19:40
Wipe drupal 8 database and files directory in order to re-install
#! /bin/bash
cd /Users/kim/dev/drupal-core/drupal
sudo rm -rf sites/default/files
sudo rm -rf sites/default/settings.php
mysqladmin -uroot --force drop drupal_8
mysqladmin -uroot create drupal_8