Skip to content

Instantly share code, notes, and snippets.

diff --git a/src/Plugin/EntityBrowser/SelectionDisplay/View.php b/src/Plugin/EntityBrowser/SelectionDisplay/View.php
index 36fe12a..0b14c91 100644
--- a/src/Plugin/EntityBrowser/SelectionDisplay/View.php
+++ b/src/Plugin/EntityBrowser/SelectionDisplay/View.php
@@ -123,9 +123,8 @@ class View extends SelectionDisplayBase {
*/
public function calculateDependencies() {
$dependencies = [];
- if ($this->configuration['view']) {
- $view = ViewEntity::load($this->configuration['view']);
@adamclark-dev
adamclark-dev / keybase.md
Created November 10, 2017 10:18
My keybase

Keybase proof

I hereby claim:

  • I am adamclark-dev on github.
  • I am adamclark (https://keybase.io/adamclark) on keybase.
  • I have a public key ASBstuem5mxny_ZCrKE6CeEtzTe6qf649m5wyUVPjECnqAo

To claim this, I am signing this object:

@adamclark-dev
adamclark-dev / drupal_8.4_form_reset.patch
Last active October 10, 2017 16:02
Drupal 8.4 Jquery UI Form reset mixin patch
diff --git a/core/core.libraries.yml b/core/core.libraries.yml
index 011c713cb7..1b3071be38 100644
--- a/core/core.libraries.yml
+++ b/core/core.libraries.yml
@@ -687,6 +687,22 @@ jquery.ui.effects.transfer:
dependencies:
- core/jquery.ui.effects.core
+jquery.ui.escape_selector:
+ version: *jquery_ui_version
@adamclark-dev
adamclark-dev / cache_responsive_image_metadata.patch
Last active August 25, 2017 10:11
Drupal 8.3.7 patch to cache responsive image metadata
diff --git a/core/modules/responsive_image/responsive_image.module b/core/modules/responsive_image/responsive_image.module
index 4388e89635..bcd81f8de1 100644
--- a/core/modules/responsive_image/responsive_image.module
+++ b/core/modules/responsive_image/responsive_image.module
@@ -396,9 +396,10 @@ function responsive_image_build_source_attributes(ImageInterface $image, array $
*/
function _responsive_image_build_source_attributes(array $variables, BreakpointInterface $breakpoint, array $multipliers) {
if ((empty($variables['width']) || empty($variables['height']))) {
- $image = \Drupal::service('image.factory')->get($variables['uri']);
- $width = $image->getWidth();