Skip to content
Snippets Groups Projects
Commit e72a8a3b authored by baldwinlouie's avatar baldwinlouie Committed by Yas Naoi
Browse files

Issue #3038658 by baldwinlouie, yas, Xiaohua Guan, Masami: Remove Cloud Server Template menu link

parent 4d83b413
No related branches found
No related tags found
No related merge requests found
......@@ -4,7 +4,7 @@ entity.cloud_server_template.add_form:
title: 'Add Server Template'
class: 'Drupal\cloud_server_template\Plugin\Derivative\CloudServerTemplateLocalAction'
appears_on:
- entity.cloud_server_template.collection.list_all.context
- entity.cloud_server_template.collection
entity.cloud_server_template.collection:
route_name: entity.cloud_server_template.collection
......
# Created by yas 2016/06/23.
# Cloud Server Template menu items definition
entity.cloud_server_template.collection:
title: 'Cloud Server Template'
route_name: entity.cloud_server_template.collection
description: 'List Server Templates'
parent: 'cloud.design.menu'
weight: 100
# Cloud Server Template type menu items definition
entity.cloud_server_template_type.collection:
title: 'Cloud Server Template type'
......
......@@ -10,23 +10,6 @@ entity.cloud_server_template.canonical:
_entity_access: 'cloud_server_template.view'
entity.cloud_server_template.collection:
path: '/clouds/design/server_template/list'
defaults:
_entity_list: 'cloud_server_template'
_title: 'Server Template List'
requirements:
_permission: 'list cloud server template'
entity.cloud_server_template.collection.list_all:
path: '/clouds/design/server_template/list'
defaults:
_entity_list: 'cloud_server_template'
_title: 'Server Template List'
requirements:
_permission: 'list cloud server template'
# Cloud Server Template list by cloud_context route
entity.cloud_server_template.collection.list_all.context:
path: '/clouds/design/server_template/list/{cloud_context}'
defaults:
_entity_list: 'cloud_server_template'
......
......@@ -64,7 +64,7 @@ use Drupal\user\UserInterface;
* "revision_revert" = "/clouds/design/server_template/{cloud_context}/{cloud_server_template}/revisions/{cloud_server_template_revision}/revert",
* "revision_delete" = "/clouds/design/server_template/{cloud_context}/{cloud_server_template}/revisions/{cloud_server_template_revision}/delete",
* "translation_revert" = "/clouds/design/server_template/{cloud_context}/{cloud_server_template}/revisions/{cloud_server_template_revision}/revert/{langcode}",
* "collection" = "/clouds/design/server_template/list",
* "collection" = "/clouds/design/server_template/list/{cloud_context}",
* "launch" = "/clouds/design/server_template/{cloud_context}/{cloud_server_template}/launch",
* },
* bundle_entity_type = "cloud_server_template_type",
......
......@@ -65,8 +65,8 @@ class CloudServerTemplateMenuLinks extends DeriverBase implements ContainerDeriv
$id = 'entity.cloud_server_template.local_tasks.' . $entity->getCloudContext();
$this->derivatives[$id] = $base_plugin_definition;
$this->derivatives[$id]['title'] = $entity->label();
$this->derivatives[$id]['route_name'] = 'entity.cloud_server_template.collection.list_all.context';
$this->derivatives[$id]['parent'] = 'entity.cloud_server_template.collection';
$this->derivatives[$id]['route_name'] = 'entity.cloud_server_template.collection';
$this->derivatives[$id]['parent'] = 'cloud.design.menu';
$this->derivatives[$id]['route_parameters'] = ['cloud_context' => $entity->getCloudContext()];
}
}
......
......@@ -20,7 +20,7 @@ aws_cloud.settings:
entity.aws_cloud_instance.add_form:
# route_name: entity.aws_cloud_instance.add_form
route_name: entity.cloud_server_template.collection.list_all.context
route_name: entity.cloud_server_template.collection
title: 'Add | Launch AWS Cloud Instance'
appears_on:
- view.aws_instances.page_1
......
......@@ -213,7 +213,6 @@ class AwsCloudConfigTest extends BrowserTestBase {
$paths = [
'/clouds',
'/clouds/design',
'/clouds/design/server_template/list',
];
foreach ($paths as $path) {
......
......@@ -172,7 +172,7 @@ class CloudConfigPluginManager extends DefaultPluginManager implements CloudConf
* {@inheritdoc}
*/
public function getServerTemplateCollectionName() {
return 'entity.cloud_server_template.collection.list_all.context';
return 'entity.cloud_server_template.collection';
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment