Skip to content

Instantly share code, notes, and snippets.

View sylus's full-sized avatar
:octocat:
Learning all things Cloud Native (CNCF)

William H sylus

:octocat:
Learning all things Cloud Native (CNCF)
View GitHub Profile
diff --git a/src/CshsOptionsFromHelper.php b/src/CshsOptionsFromHelper.php
index 011b2a86..ec168e46 100644
--- a/src/CshsOptionsFromHelper.php
+++ b/src/CshsOptionsFromHelper.php
@@ -317,6 +317,10 @@ private function getOptions(string $vocabulary_id, int $parent = 0, $none_value
};
}
+ // contexts for alter hook
+ $account = \Drupal::entityTypeManager()->getStorage('user')->load(\Drupal::currentUser()->id());
@sylus
sylus / 1705618-double-click-prevention-on-form-submission.patch
Last active August 11, 2021 17:48
Double click prevention on form submission
From 2a8962fa547e1dbc25768ccabfc8ae01f64998a4 Mon Sep 17 00:00:00 2001
From: sylus <[email protected]>
Date: Wed, 11 Aug 2021 13:38:37 -0400
Subject: [PATCH] Double click prevention on form submission
---
includes/form.inc | 24 ++++++++++++++
misc/form.js | 62 ++++++++++++++++++++++++++++++++++++
modules/system/system.module | 6 ++--
3 files changed, 89 insertions(+), 3 deletions(-)
From 20fc988f44c6af8d37913e9d9b9d8d0a0154414f Mon Sep 17 00:00:00 2001
From: sylus <[email protected]>
Date: Thu, 24 Feb 2022 20:55:26 -0500
Subject: [PATCH] feat(notebook): Patch noVNC for notebooks
Signed-off-by: sylus <[email protected]>
---
app/ui.js | 17 ++++++++++++++++-
vnc_lite.html | 6 ++++--
2 files changed, 20 insertions(+), 3 deletions(-)