URL to ticket(s):
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"MRData": { | |
"xmlns": "http://ergast.com/mrd/1.4", | |
"series": "f1", | |
"url": "http://ergast.com/api/f1/2018/circuits.json", | |
"limit": "30", | |
"offset": "0", | |
"total": "21", | |
"CircuitTable": { | |
"season": "2018", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Implements hook_file_insert(). | |
*/ | |
public function postSave(EntityStorageInterface $storage, $update = TRUE) { | |
parent::postSave($storage, $update); | |
// Save file metadata. | |
if (!empty($this->metadata)) { | |
if ($update) { | |
db_delete('file_metadata')->condition('fid', $this->id())->execute(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Drupal\flysystem_s3; | |
use Aws\CacheInterface; | |
use Drupal\Core\Cache\CacheBackendInterface; | |
/** | |
* A Drupal cache adapter for use with the AWS PHP SDK. | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Drupal\myModule; | |
use Drupal\Core\DependencyInjection\ContainerBuilder; | |
use Drupal\Core\DependencyInjection\ServiceProviderBase; | |
/** | |
* Removes the internationalization service definitions from twig_extension. | |
*/ |
This section is for your verification before submitting a PR. Remove this before submitting:
- Has any required automated testing been written/updated?
- Has the documentation been added/updated?
- Is there appropriate logging included?
- Does this add new modules/themes? If so:
- Has the make file been updated?
- Has the install profile's info file been updated?
- Have you run a test build locally to confirm your new modules/themes get downloaded and enabled properly?
- Does this add new configuration? If so:
- DID YOU RUN GRUNT VALIDATE?!?!?!
- Has this passed the Definition of Done/Completeness -- tech approach signoff, screenshot signoff, etc.
- Has any required automated testing been written/updated?
- Has the documentation been added/updated?
- Is there appropriate logging included?
- Does this add new modules/themes? If so:
- Has the make file been updated?
- Has moduleList been updated?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git branch --merged | grep -v "\*" | xargs -n 1 git branch -d |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="description" content="Do Now Activity" /> | |
<meta charset=utf-8 /> | |
<title>Do Now Activity</title> | |
<style id="jsbin-css"> | |
/* Add your CSS! */ | |
.challenge1 { |
NewerOlder