Skip to content

Instantly share code, notes, and snippets.

diff --git a/core/modules/taxonomy/src/Plugin/views/filter/TaxonomyIndexTid.php b/core/modules/taxonomy/src/Plugin/views/filter/TaxonomyIndexTid.php
index efadf83126..42685c79f3 100644
--- a/core/modules/taxonomy/src/Plugin/views/filter/TaxonomyIndexTid.php
+++ b/core/modules/taxonomy/src/Plugin/views/filter/TaxonomyIndexTid.php
@@ -6,6 +6,7 @@
use Drupal\Core\Form\FormStateInterface;
use Drupal\taxonomy\Entity\Term;
use Drupal\taxonomy\TermStorageInterface;
+use Drupal\taxonomy\VocabularyInterface;
use Drupal\taxonomy\VocabularyStorageInterface;
diff --git a/core/modules/taxonomy/config/schema/taxonomy.views.schema.yml b/core/modules/taxonomy/config/schema/taxonomy.views.schema.yml
index 9ec9758185..98be95b22d 100644
--- a/core/modules/taxonomy/config/schema/taxonomy.views.schema.yml
+++ b/core/modules/taxonomy/config/schema/taxonomy.views.schema.yml
@@ -120,9 +120,12 @@ views.filter.taxonomy_index_tid:
type: views.filter.many_to_one
label: 'Taxonomy term ID'
mapping:
- vid:
- type: string
diff --git a/core/modules/taxonomy/config/schema/taxonomy.views.schema.yml b/core/modules/taxonomy/config/schema/taxonomy.views.schema.yml
index 9ec9758185..98be95b22d 100644
--- a/core/modules/taxonomy/config/schema/taxonomy.views.schema.yml
+++ b/core/modules/taxonomy/config/schema/taxonomy.views.schema.yml
@@ -120,9 +120,12 @@ views.filter.taxonomy_index_tid:
type: views.filter.many_to_one
label: 'Taxonomy term ID'
mapping:
- vid:
- type: string
diff --git a/core/modules/node/src/Plugin/views/wizard/Node.php b/core/modules/node/src/Plugin/views/wizard/Node.php
index 0fd93675a8..777288168b 100644
--- a/core/modules/node/src/Plugin/views/wizard/Node.php
+++ b/core/modules/node/src/Plugin/views/wizard/Node.php
@@ -111,7 +111,7 @@ protected function defaultDisplayFiltersUser(array $form, FormStateInterface $fo
'table' => 'taxonomy_index',
'field' => 'tid',
'value' => $tids,
- 'vid' => $vid,
+ 'vids' => [$vid],
diff --git a/config/schema/linkit.schema.yml b/config/schema/linkit.schema.yml
index 882a2f1..af556bb 100644
--- a/config/schema/linkit.schema.yml
+++ b/config/schema/linkit.schema.yml
@@ -110,3 +110,21 @@ ckeditor.plugin.drupallink:
linkit_profile:
type: string
label: 'Linkit profile'
+
+# Schema for the Linkit widget.
@ahebrank
ahebrank / relative_paths.patch
Created November 15, 2018 15:01
migrate source csv relative paths
diff --git a/src/Plugin/migrate/source/CSV.php b/src/Plugin/migrate/source/CSV.php
index 21855b7..2a8a075 100644
--- a/src/Plugin/migrate/source/CSV.php
+++ b/src/Plugin/migrate/source/CSV.php
@@ -82,11 +82,31 @@ class CSV extends SourcePluginBase implements ConfigurablePluginInterface {
return $this->getConfiguration()['path'];
}
+ /**
+ * Determine whether a path is absolute or relative (i.e., to the webroot).
diff --git a/quick_node_clone.module b/quick_node_clone.module
index 722075d..a89a1d9 100644
--- a/quick_node_clone.module
+++ b/quick_node_clone.module
@@ -58,14 +58,6 @@ function _quick_node_clone_has_clone_permission($bundle) {
throw new InvalidArgumentException('Argument 1 passed to _quick_node_clone_has_clone_permission() must be of type string, ' . gettype($bundle) . ' given.');
}
$current_user = \Drupal::currentUser();
- if ($current_user->hasPermission("administer nodes")) {
- return TRUE;
diff --git a/config/install/lazyloader.configuration.yml b/config/install/lazyloader.configuration.yml
index 3f58d71..0aacf83 100644
--- a/config/install/lazyloader.configuration.yml
+++ b/config/install/lazyloader.configuration.yml
@@ -2,3 +2,4 @@ enabled: TRUE
placeholder: ""
debugging: FALSE
cdn: FALSE
+use_traced_placeholder: FALSE
diff --git a/config/schema/lazyloader.schema.yml b/config/schema/lazyloader.schema.yml
diff --git a/src/Plugin/views/display/Eva.php b/src/Plugin/views/display/Eva.php
index a7b6d5f..487b115 100644
--- a/src/Plugin/views/display/Eva.php
+++ b/src/Plugin/views/display/Eva.php
@@ -10,6 +10,7 @@ use Drupal\views\Plugin\views\display\DisplayPluginBase;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Component\Utility\SafeMarkup;
use Symfony\Component\DependencyInjection\ContainerInterface;
+use Drupal\eva\ViewDisplays;