diff --git a/core/modules/rest/lib/Drupal/rest/Plugin/views/display/RestExport.php b/core/modules/rest/lib/Drupal/rest/Plugin/views/display/RestExport.php index 81228e9..f9d3340 100644 --- a/core/modules/rest/lib/Drupal/rest/Plugin/views/display/RestExport.php +++ b/core/modules/rest/lib/Drupal/rest/Plugin/views/display/RestExport.php @@ -249,6 +249,7 @@ public function optionsSummary(&$categories, &$options) { $options['path']['category'] = 'path'; $options['path']['title'] = t('Path'); + $options['auth']['category'] = 'path'; // Remove css/exposed form settings, as they are not used for the data // display. diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/display/Feed.php b/core/modules/views/lib/Drupal/views/Plugin/views/display/Feed.php index 9276bfe..ed7a571 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/display/Feed.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/display/Feed.php @@ -152,8 +152,6 @@ protected function defineOptions() { */ public function optionsSummary(&$categories, &$options) { parent::optionsSummary($categories, $options); - // Relocate Authentication settings so they are visible. - $options['auth']['category'] = 'page'; // Since we're childing off the 'path' type, we'll still *call* our // category 'page' but let's override it so it says feed settings. diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/display/Page.php b/core/modules/views/lib/Drupal/views/Plugin/views/display/Page.php index 7bf8269..21a4de2 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/display/Page.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/display/Page.php @@ -112,8 +112,6 @@ public function execute() { */ public function optionsSummary(&$categories, &$options) { parent::optionsSummary($categories, $options); - // Relocate authentication settings so they are visible. - $options['auth']['category'] = 'page'; $menu = $this->getOption('menu'); if (!is_array($menu)) { diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/display/PathPluginBase.php b/core/modules/views/lib/Drupal/views/Plugin/views/display/PathPluginBase.php index b342bae..15bc8c6 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/display/PathPluginBase.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/display/PathPluginBase.php @@ -242,10 +242,7 @@ public function collectRoutes(RouteCollection $collection) { // Add authentication to the route if it was set. $auth = array_filter($this->getOption('auth')); if (!empty($auth)) { - $options = array( - '_auth' => $auth, - ); - $route->addOptions($options); + $route->setOption('_auth', $auth); } $collection->add($route_name, $route); @@ -407,7 +404,7 @@ public function optionsSummary(&$categories, &$options) { } $options['auth'] = array( - 'category' => 'path', + 'category' => 'page', 'title' => $this->t('Authentication'), 'value' => views_ui_truncate($auth, 24), );