Skip to content

Instantly share code, notes, and snippets.

@alexpott
alexpott / starter_template.yml
Last active May 25, 2022
Example starter template
View starter_template.yml
# Example starter template based on the discussions in https://docs.google.com/document/d/1_PoxyIPND-d2TkgrThzivcJS8B_Bg1gIIrkFsGDtmCM
name: 'An example starter template'
description: 'A description of the functionality'
# The type key is similar to the package key in module.info.yml. It
# can be used by the UI to group starter templates. Additionally,
# the type 'Site' means that the starter template will be listed in
# the installer.
type: 'Content type'
apply_first:
@alexpott
alexpott / d-o-stylesheet.css
Created Feb 4, 2021
User stylesheet for d.o
View d-o-stylesheet.css
* Inspired by Bohjan's style */
.container-12 {
min-width: 1200px !important;
}
#header-screen {
display: none;
}
section.comments > div.comment .permalink-wrapper {
View drupal.org.css
/* Inspired by Bohjan's style */
.container-12 {
min-width: 1200px !important;
}
#header-screen {
display: none;
}
section.comments > div.comment .permalink-wrapper {
float: left;
@alexpott
alexpott / quick-drupal.sh
Last active May 3, 2018
A new quick way to start drupalling on a local install. You need git and PHP (>5.5.9)
View quick-drupal.sh
curl -sS https://ftp.drupal.org/files/projects/drupal-8.6.x-dev.zip --output drupal.zip
unzip drupal.zip
cd drupal-8.6.x-dev
php ./core/scripts/drupal quick-start
View gist:8e5c86cd75ae235534be9ff0cb527273
Verifying my Blockstack ID is secured with the address 15CDdYjXMqbAnRqN7dwdT5pp9PEAeM1UxT https://explorer.blockstack.org/address/15CDdYjXMqbAnRqN7dwdT5pp9PEAeM1UxT
View gist:0930c476f078427897354cb7e0f066ac
<?php
namespace Drupal\custom_migration\Plugin\migrate\process;
use Drupal\Component\Utility\Html;
use Drupal\migrate\ProcessPluginBase;
use Drupal\migrate\MigrateExecutableInterface;
use Drupal\migrate\Row;
/**
@alexpott
alexpott / settings.local.php
Last active Nov 14, 2016 — forked from jacine/settings.local.php
settings.local.php
View settings.local.php
<?php
/**
* @file
* Local development override configuration feature.
*
* To activate this feature, copy and rename it such that its path plus
* filename is 'sites/default/settings.local.php'. Then, go to the bottom of
* 'sites/default/settings.php' and uncomment the commented lines that mention
* 'settings.local.php'.
View profile.install
<?php
/**
* @file
* Install, update and uninstall functions for my project.
*/
/**
* Implements hook_install().
*
View profile,install
<?php
/**
* @file
* Install, update and uninstall functions for my project.
*/
/**
* Implements hook_install().
*
View gist:60663b978fb912b6c84d
diff --git a/core/lib/Drupal/Core/Entity/EntityManager.php b/core/lib/Drupal/Core/Entity/EntityManager.php
index d749734..f185573 100644
--- a/core/lib/Drupal/Core/Entity/EntityManager.php
+++ b/core/lib/Drupal/Core/Entity/EntityManager.php
@@ -23,7 +23,6 @@
use Drupal\Core\Field\FieldStorageDefinitionEvents;
use Drupal\Core\Field\FieldStorageDefinitionInterface;
use Drupal\Core\Field\FieldStorageDefinitionListenerInterface;
-use Drupal\Core\KeyValueStore\KeyValueFactory;
use Drupal\Core\KeyValueStore\KeyValueFactoryInterface;