Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dawehner’s picture

FileSize
3.23 KB

It is in general not know how you decide which plugin types should get which kind of decorators.

Let's add the AlterDecorator to all of them.

dawehner’s picture

FileSize
6.26 KB

LOL regarding the different bug fixes required for this patch.

dawehner’s picture

FileSize
5.82 KB
+++ b/views.moduleundefined
@@ -930,6 +930,7 @@ function views_add_contextual_links(&$render_element, $location, ViewExecutable
+    dsm($plugin);

Let's brake the bot!

+++ b/views.moduleundefined
@@ -954,14 +955,14 @@ function views_add_contextual_links(&$render_element, $location, ViewExecutable
+            // (for example, "path/to/{$view->storage->property}", where $view->property

This should use $view->property as well.

damiankloip’s picture

Status: Needs review » Needs work
FileSize
6.86 KB
+++ b/lib/Drupal/views/Plugin/Type/JoinManager.phpundefined
@@ -28,7 +29,7 @@ class JoinManager extends PluginManagerBase {
+    $this->discovery = new CacheDecorator(new AlterDecorator(new AnnotatedClassDiscovery('views', 'join'), 'views_plugins_join'), 'views:join', 'views_info');

Should we consider breaking this apart, so it's not a one liner. It's getting trickier to read :)

I have added some quick tests to dawehner's patch above in this patch.

damiankloip’s picture

Status: Needs work » Needs review

Oops.

aspilicious’s picture

Status: Needs review » Reviewed & tested by the community

Ok I think this is rdy, this can be a oneliner for now untill we go crazy and add another wrapper ;)

dawehner’s picture

Status: Reviewed & tested by the community » Fixed

He, we will probably add at least one. Committed and pushed

Automatically closed -- issue fixed for 2 weeks with no activity.