Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
D
drupal
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
229
Merge Requests
229
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
drupal
Commits
d02178ba
Commit
d02178ba
authored
Jan 13, 2021
by
catch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#3173756
by paulocs, anmolgoyal74, eric.chenchao: Add local task link "View" to contact form
parent
7df39b5d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
+11
-0
core/modules/contact/contact.links.task.yml
core/modules/contact/contact.links.task.yml
+7
-0
core/modules/contact/tests/src/Functional/ContactSitewideTest.php
...ules/contact/tests/src/Functional/ContactSitewideTest.php
+4
-0
No files found.
core/modules/contact/contact.links.task.yml
View file @
d02178ba
entity.contact_form.canonical
:
title
:
'
View'
route_name
:
entity.contact_form.canonical
weight
:
0
base_route
:
entity.contact_form.edit_form
entity.contact_form.edit_form
:
title
:
'
Edit'
route_name
:
entity.contact_form.edit_form
weight
:
1
base_route
:
entity.contact_form.edit_form
entity.user.contact_form
:
...
...
core/modules/contact/tests/src/Functional/ContactSitewideTest.php
View file @
d02178ba
...
...
@@ -50,6 +50,7 @@ class ContactSitewideTest extends BrowserTestBase {
protected
function
setUp
():
void
{
parent
::
setUp
();
$this
->
drupalPlaceBlock
(
'system_breadcrumb_block'
);
$this
->
drupalPlaceBlock
(
'local_tasks_block'
);
$this
->
drupalPlaceBlock
(
'local_actions_block'
);
$this
->
drupalPlaceBlock
(
'page_title_block'
);
}
...
...
@@ -291,6 +292,9 @@ public function testSiteWideContact() {
$this
->
assertSession
()
->
statusCodeEquals
(
200
);
$this
->
assertSession
()
->
fieldValueEquals
(
'label'
,
$label
);
// Verify contact "View" tab exists.
$this
->
assertSession
()
->
linkExists
(
'View'
);
// Test field UI and field integration.
$this
->
drupalGet
(
'admin/structure/contact'
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment