Skip to content

Instantly share code, notes, and snippets.

View sherakama's full-sized avatar
💭
🇨🇦 Working from home

Sherakama sherakama

💭
🇨🇦 Working from home
View GitHub Profile
@crittermike
crittermike / import.php
Last active August 11, 2023 10:39
Importing Drupal 8 config programmatically
<?php
// Import arbitrary config from a variable.
// Assumes $data has the data you want to import for this config.
$config = \Drupal::service('config.factory')->getEditable('filter.format.basic_html');
$config->setData($data)->save();
// Or, re-import the default config for a module or profile, etc.
\Drupal::service('config.installer')->installDefaultConfig('module', 'my_custom_module');
@jbickar
jbickar / pull-request-template.md
Last active June 2, 2017 14:47
Pull Request Template

READY FOR REVIEW/NOT READY

  • (Edit the above to reflect status)

Summary

  • TL;DR - what's this PR for?

Needed By (Date)

  • When does this need to be merged by?

Criticality