diff --git a/core/modules/views/src/Plugin/views/display/DisplayPluginBase.php b/core/modules/views/src/Plugin/views/display/DisplayPluginBase.php index 37b6a4cc0222f3578f433f49afe3eb9f5353ea2e..94e9200d4847de664ffdadd1a24a3cccff4754c0 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; }