This patch contains a lot of bugs.
-
+++ b/core/modules/views/src/Plugin/views/display/DisplayPluginBase.php
@@ -1544,7 +1544,7 @@ public function buildOptionsForm(&$form, FormStateInterface $form_state) {
+ '#markup' => $this->t('You may also adjust the @settings for the currently selected access restriction.', array('@settings' => $this->optionLink($this->t('settings'), 'access_options'))),
This is incorrect code.
-
+++ b/core/modules/views/src/Plugin/views/display/DisplayPluginBase.php
@@ -1582,7 +1582,7 @@ public function buildOptionsForm(&$form, FormStateInterface $form_state) {
+ '#markup' => $this->t('You may also adjust the @settings for the currently selected cache mechanism.', array('@settings' => $this->optionLink($this->t('settings'), 'cache_options'))),
Same bug
-
+++ b/core/modules/views/src/Plugin/views/display/DisplayPluginBase.php
@@ -1654,7 +1654,7 @@ public function buildOptionsForm(&$form, FormStateInterface $form_state) {
+ '#markup' => $this->t('You may also adjust the @settings for the currently selected style.', array('@settings' => $this->optionLink($this->t('settings'), 'style_options'))),
Same again
-
+++ b/core/modules/views/src/Plugin/views/display/DisplayPluginBase.php
@@ -1702,7 +1702,7 @@ public function buildOptionsForm(&$form, FormStateInterface $form_state) {
+ '#markup' => $this->t('You may also adjust the @settings for the currently selected row style.', array('@settings' => $this->optionLink($this->t('settings'), 'row_options'))),
Same again
-
+++ b/core/modules/views/src/Plugin/views/display/DisplayPluginBase.php
@@ -1803,7 +1803,7 @@ public function buildOptionsForm(&$form, FormStateInterface $form_state) {
+ '#markup' => $this->t('You may also adjust the @settings for the currently selected style.', array('@settings' => $this->optionLink($this->t('settings'), 'exposed_form_options'))),
Same again
-
+++ b/core/modules/views/src/Plugin/views/display/DisplayPluginBase.php
@@ -1839,7 +1839,7 @@ public function buildOptionsForm(&$form, FormStateInterface $form_state) {
+ '#markup' => $this->t('You may also adjust the @settings for the currently selected pager.', array('@settings' => $this->optionLink($this->t('settings'), 'pager_options'))),
Same again
Comments
Comment #12
quietone commentedLooks like this is working as designed.
The link is being generated by the views method \Drupal\views\Plugin\views\display\DisplayPluginBase::optionLink that supplies the whole href element.