From d916522e7d3d0ad6792ef5f1b4a10343af8c071c Mon Sep 17 00:00:00 2001 From: Nathaniel Catchpole <catch@35733.no-reply.drupal.org> Date: Thu, 27 Oct 2016 20:29:12 +0100 Subject: [PATCH] Issue #2819493 by lauriii: DisplayPluginBase::getArgumentsTokens returns invalid tokens --- .../src/Plugin/views/display/DisplayPluginBase.php | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/core/modules/views/src/Plugin/views/display/DisplayPluginBase.php b/core/modules/views/src/Plugin/views/display/DisplayPluginBase.php index 37b6a4cc0222..94e9200d4847 100644 --- a/core/modules/views/src/Plugin/views/display/DisplayPluginBase.php +++ b/core/modules/views/src/Plugin/views/display/DisplayPluginBase.php @@ -1045,18 +1045,6 @@ public function getArgumentsTokens() { $tokens = $this->view->build_info['substitutions']; } - // Add tokens for every argument (contextual filter) and path arg. - $handlers = count($this->view->display_handler->getHandlers('argument')); - for ($count = 1; $count <= $handlers; $count++) { - if (!isset($tokens["%$count"])) { - $tokens["%$count"] = ''; - } - // Use strip tags as there should never be HTML in the path. - // However, we need to preserve special characters like " that - // were encoded by \Drupal\Component\Utility\Html::escape(). - $tokens["!$count"] = isset($this->view->args[$count - 1]) ? strip_tags(Html::decodeEntities($this->view->args[$count - 1])) : ''; - } - return $tokens; } -- GitLab