diff --git a/core/modules/views/src/Plugin/views/PluginBase.php b/core/modules/views/src/Plugin/views/PluginBase.php index 70e7666..a9d73bc 100644 --- a/core/modules/views/src/Plugin/views/PluginBase.php +++ b/core/modules/views/src/Plugin/views/PluginBase.php @@ -402,6 +402,9 @@ function ($children, $elements) { ], ); + // Currently you cannot attach assets to tokens, however renderPlain is + // unnecessarily limiting. Consider using executeInRenderContext instead. + // @todo: https://www.drupal.org/node/2566621 return (string) $this->getRenderer()->renderPlain($build); } else {