diff --git a/core/modules/block/src/Tests/Views/DisplayBlockTest.php b/core/modules/block/src/Tests/Views/DisplayBlockTest.php index d26f7ef..3c0deab 100644 --- a/core/modules/block/src/Tests/Views/DisplayBlockTest.php +++ b/core/modules/block/src/Tests/Views/DisplayBlockTest.php @@ -275,8 +275,8 @@ public function testBlockContextualLinks() { $cached_block = $this->drupalPlaceBlock('views_block:test_view_block-block_1', array('cache' => array('max_age' => 3600))); $this->drupalGet('test-page'); - $id = 'block:block=' . $block->id() . ':|entityviewedit-form:view=test_view_block:location=block&name=test_view_block&display_id=block_1'; - $cached_id = 'block:block=' . $cached_block->id() . ':|entityviewedit-form:view=test_view_block:location=block&name=test_view_block&display_id=block_1'; + $id = 'block:block=' . $block->id() . ':|entity.view.edit_form:view=test_view_block:location=block&name=test_view_block&display_id=block_1'; + $cached_id = 'block:block=' . $cached_block->id() . ':|entity.view.edit_form:view=test_view_block:location=block&name=test_view_block&display_id=block_1'; // @see \Drupal\contextual\Tests\ContextualDynamicContextTest:assertContextualLinkPlaceHolder() $this->assertRaw(' $id)) . '>', format_string('Contextual link placeholder with id @id exists.', array('@id' => $id))); $this->assertRaw(' $cached_id)) . '>', format_string('Contextual link placeholder with id @id exists.', array('@id' => $cached_id))); @@ -287,8 +287,8 @@ public function testBlockContextualLinks() { $response = $this->drupalPost('contextual/render', 'application/json', $post, array('query' => array('destination' => 'test-page'))); $this->assertResponse(200); $json = Json::decode($response); - $this->assertIdentical($json[$id], ''); - $this->assertIdentical($json[$cached_id], ''); + $this->assertIdentical($json[$id], ''); + $this->assertIdentical($json[$cached_id], ''); } } diff --git a/core/modules/config_translation/src/ConfigEntityMapper.php b/core/modules/config_translation/src/ConfigEntityMapper.php index aa92fcd..ce66ff6 100644 --- a/core/modules/config_translation/src/ConfigEntityMapper.php +++ b/core/modules/config_translation/src/ConfigEntityMapper.php @@ -232,7 +232,7 @@ public function getContextualLinkGroup() { case 'block': return $this->entityType; case 'view': - return 'views_ui_edit'; + return 'entity.view.edit_form'; default: return NULL; } diff --git a/core/modules/views_ui/views_ui.links.contextual.yml b/core/modules/views_ui/views_ui.links.contextual.yml index d9ad560..90a2428 100644 --- a/core/modules/views_ui/views_ui.links.contextual.yml +++ b/core/modules/views_ui/views_ui.links.contextual.yml @@ -1,9 +1,9 @@ entity.view.edit_form: title: 'Edit view' route_name: entity.view.edit_form - group: views_ui_edit + group: entity.view.edit_form entity.view.preview_form: title: 'Preview view' route_name: entity.view.preview_form - group: views_ui_preview + group: entity.view.preview_form diff --git a/core/modules/views_ui/views_ui.module b/core/modules/views_ui/views_ui.module index 634abcf..7ed77e1 100644 --- a/core/modules/views_ui/views_ui.module +++ b/core/modules/views_ui/views_ui.module @@ -236,7 +236,7 @@ function views_ui_views_plugins_display_alter(&$plugins) { // paths underneath "admin/structure/views/view/{$view->id()}" (i.e., paths // for editing and performing other contextual actions on the view). foreach ($plugins as &$display) { - $display['contextual links']['views_ui_edit'] = array( + $display['contextual links']['entity.view.edit_form'] = array( 'route_name' => 'entity.view.edit_form', 'route_parameters_names' => array('view' => 'id'), );