Skip to content

Commit ebf3634

Browse files
MaskySpaul-m
MaskyS
authored andcommitted
Issue #2897630 by Mile23, Kifah Meeran, jalpesh, LauraRocks, navneet0693, zenlan: Properly capitalize all route/link names
1 parent bd6fded commit ebf3634

19 files changed

+67
-64
lines changed

batch_example/batch_example.routing.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ batch_example.form:
22
path: 'examples/batch_example'
33
defaults:
44
_form: '\Drupal\batch_example\Form\BatchExampleForm'
5-
_title: 'Demo of Batch processing'
5+
_title: 'Demo of batch processing'
66
requirements:
77
_permission: 'access content'
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
cache_example.description:
2-
title: Cache example
2+
title: 'Cache Example'
33
description: 'Example of Drupal Cache API'
44
route_name: cache_example.description

config_entity_example/config_entity_example.links.action.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ config_entity_example.add_action:
88

99
config_entity_example.list_action:
1010
route_name: entity.robot.list
11-
title: 'List Robots'
11+
title: 'List robots'
1212
appears_on:
1313
- entity.robot.add_form
1414
- entity.robot.edit_form

content_entity_example/content_entity_example.links.action.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
content_entity_example.contact_add:
44
# Which route will be called by the link
55
route_name: content_entity_example.contact_add
6-
title: 'Add Contact'
6+
title: 'Add contact'
77

88
# Where will the link appear, defined by route name.
99
appears_on:
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# Define the menu links for this module
22

33
entity.content_entity_example_contact.collection:
4-
title: 'Content Entity Example: Contacts Listing'
4+
title: 'Content Entity Example: Contacts listing'
55
route_name: entity.content_entity_example_contact.collection
6-
description: 'List Contacts'
6+
description: 'List contacts'
77
weight: 10
88
content_entity_example_contact.admin.structure.settings:
9-
title: Contact Settings
10-
description: 'Configure Contact entity'
9+
title: 'Contact settings'
10+
description: 'Configure contact entity'
1111
route_name: content_entity_example.contact_settings
1212
parent: system.admin_structure

content_entity_example/content_entity_example.routing.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ entity.content_entity_example_contact.canonical:
77
defaults:
88
# Calls the view controller, defined in the annotation of the contact entity
99
_entity_view: 'content_entity_example_contact'
10-
_title: 'Contact Content'
10+
_title: 'Contact content'
1111
requirements:
1212
# Calls the access controller of the entity, $operation 'view'
1313
_entity_access: 'content_entity_example_contact.view'
@@ -17,7 +17,7 @@ entity.content_entity_example_contact.collection:
1717
defaults:
1818
# Calls the list controller, defined in the annotation of the contact entity.
1919
_entity_list: 'content_entity_example_contact'
20-
_title: 'Contact List'
20+
_title: 'Contact list'
2121
requirements:
2222
# Checks for permission directly.
2323
_permission: 'view contact entity'
@@ -27,7 +27,7 @@ content_entity_example.contact_add:
2727
defaults:
2828
# Calls the form.add controller, defined in the contact entity.
2929
_entity_form: content_entity_example_contact.add
30-
_title: 'Add Contact'
30+
_title: 'Add contact'
3131
requirements:
3232
_entity_create_access: 'content_entity_example_contact'
3333

@@ -36,7 +36,7 @@ entity.content_entity_example_contact.edit_form:
3636
defaults:
3737
# Calls the form.edit controller, defined in the contact entity.
3838
_entity_form: content_entity_example_contact.edit
39-
_title: 'Edit Contact'
39+
_title: 'Edit contact'
4040
requirements:
4141
_entity_access: 'content_entity_example_contact.edit'
4242

@@ -45,14 +45,14 @@ entity.content_entity_example_contact.delete_form:
4545
defaults:
4646
# Calls the form.delete controller, defined in the contact entity.
4747
_entity_form: content_entity_example_contact.delete
48-
_title: 'Delete Contact'
48+
_title: 'Delete contact'
4949
requirements:
5050
_entity_access: 'content_entity_example_contact.delete'
5151

5252
content_entity_example.contact_settings:
5353
path: 'admin/structure/content_entity_example_contact_settings'
5454
defaults:
5555
_form: '\Drupal\content_entity_example\Form\ContactSettingsForm'
56-
_title: 'Contact Settings'
56+
_title: 'Contact settings'
5757
requirements:
5858
_permission: 'administer contact entity'

dbtng_example/dbtng_example.links.menu.yml

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
dbtng_example.description:
22
title: DBTNG Example
33
route_name: dbtng_example
4+
expanded: TRUE
45

56
dbtng_example.list:
67
title: List

dbtng_example/dbtng_example.routing.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,23 +17,23 @@ dbtng_list:
1717
dbtng_add:
1818
path: 'examples/dbtng-example/add'
1919
defaults:
20-
_title: 'Add Entry'
20+
_title: 'Add entry'
2121
_form: '\Drupal\dbtng_example\Form\DbtngExampleAddForm'
2222
requirements:
2323
_permission: 'access content'
2424

2525
dbtng_update:
2626
path: 'examples/dbtng-example/update'
2727
defaults:
28-
_title: 'Update Entry'
28+
_title: 'Update entry'
2929
_form: '\Drupal\dbtng_example\Form\DbtngExampleUpdateForm'
3030
requirements:
3131
_permission: 'access content'
3232

3333
dbtng_advanced:
3434
path: 'examples/dbtng-example/advanced'
3535
defaults:
36-
_title: 'Advanced List'
36+
_title: 'Advanced list'
3737
_controller: '\Drupal\dbtng_example\Controller\DbtngExampleController::entryAdvancedList'
3838
requirements:
3939
_permission: 'access content'
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
email_example.description:
2-
title: 'E-mail Example: contact form'
2+
title: 'E-mail Example: Contact Form'
33
description: 'Callback for generating form.'
44
route_name: email_example.description

fapi_example/fapi_example.links.menu.yml

+11-10
Original file line numberDiff line numberDiff line change
@@ -3,72 +3,73 @@ fapi_example.description:
33
title: Form API Examples
44
description: Form examples using Drupal Form API.
55
route_name: fapi_example.description
6+
expanded: TRUE
67

78
fapi_example.simple_form:
8-
title: Simple Form
9+
title: Simple form
910
description: A simple form example with submit processing.
1011
route_name: fapi_example.simple_form
1112
parent: fapi_example.description
1213
weight: -9
1314

1415
fapi_example.multistep_form:
15-
title: Multistep Form
16+
title: Multistep form
1617
description: Multistep form example with submit processing.
1718
route_name: fapi_example.multistep_form
1819
parent: fapi_example.description
1920
weight: -8
2021

2122
fapi_example.input_demo:
22-
title: Common Input Elements
23+
title: Common input elements
2324
description: A form to demonstrate input elements.
2425
route_name: fapi_example.input_demo
2526
parent: fapi_example.description
2627
weight: -7
2728

2829
fapi_example.build_demo:
29-
title: Build Form Demo
30+
title: Build form demo
3031
description: Demonstrates the order of firing of from controller methods.
3132
route_name: fapi_example.build_demo
3233
parent: fapi_example.description
3334
weight: -6
3435

3536
fapi_example.container_demo:
36-
title: Container Elements
37+
title: Container elements
3738
description: A form to demonstrate use of containers.
3839
route_name: fapi_example.container_demo
3940
parent: fapi_example.description
4041
weight: -5
4142

4243
fapi_example.state_demo:
43-
title: Form State Binding
44+
title: Form state binding
4445
description: A form to demonstrate binding of form state.
4546
route_name: fapi_example.state_demo
4647
parent: fapi_example.description
4748
weight: -4
4849

4950
fapi_example.vertical_tabs_demo:
50-
title: Vertical Tab Elements
51+
title: Vertical tab elements
5152
description: A form to demonstrate use of vertical tabs.
5253
route_name: fapi_example.vertical_tabs_demo
5354
parent: fapi_example.description
5455
weight: -3
5556

5657
fapi_example.ajax_demo:
57-
title: Ajax Form
58+
title: Ajax form
5859
description: A form to demonstrate use of AJAX.
5960
route_name: fapi_example.ajax_demo
6061
parent: fapi_example.description
6162
weight: -2
6263

6364
fapi_example.ajax_addmore:
64-
title: Add-more Button
65+
title: Add-more button
6566
description: Form with 'add more' and 'remove' buttons.
6667
route_name: fapi_example.ajax_addmore
6768
parent: fapi_example.description
6869
weight: -1
6970

7071
fapi_example.modal_form:
71-
title: Modal Form
72+
title: Modal form
7273
description: Demonstrates using Drupal's modal form.
7374
route_name: fapi_example.modal_form
7475
parent: fapi_example.description

fapi_example/fapi_example.routing.yml

+10-10
Original file line numberDiff line numberDiff line change
@@ -22,78 +22,78 @@ fapi_example.simple_form:
2222
path: 'examples/fapi-example/simple-form'
2323
defaults:
2424
_form: '\Drupal\fapi_example\Form\SimpleForm'
25-
_title: 'Simple Form'
25+
_title: 'Simple form'
2626
requirements:
2727
_permission: 'access content'
2828

2929
fapi_example.input_demo:
3030
path: 'examples/fapi-example/input-demo'
3131
defaults:
3232
_form: '\Drupal\fapi_example\Form\InputDemo'
33-
_title: 'Common Input Elements'
33+
_title: 'Common input elements'
3434
requirements:
3535
_permission: 'access content'
3636

3737
fapi_example.state_demo:
3838
path: 'examples/fapi-example/state-demo'
3939
defaults:
4040
_form: '\Drupal\fapi_example\Form\StateDemo'
41-
_title: 'Form State Binding'
41+
_title: 'Form state binding'
4242
requirements:
4343
_permission: 'access content'
4444

4545
fapi_example.container_demo:
4646
path: 'examples/fapi-example/container-demo'
4747
defaults:
4848
_form: '\Drupal\fapi_example\Form\ContainerDemo'
49-
_title: 'Container Elements'
49+
_title: 'Container elements'
5050
requirements:
5151
_permission: 'access content'
5252

5353
fapi_example.vertical_tabs_demo:
5454
path: 'examples/fapi-example/vertical-tabs-demo'
5555
defaults:
5656
_form: '\Drupal\fapi_example\Form\VerticalTabsDemo'
57-
_title: 'Vertical Tab Elements'
57+
_title: 'Vertical tab elements'
5858
requirements:
5959
_permission: 'access content'
6060

6161
fapi_example.modal_form:
6262
path: 'examples/fapi-example/modal-form'
6363
defaults:
6464
_form: '\Drupal\fapi_example\Form\ModalForm'
65-
_title: 'Modal Form'
65+
_title: 'Modal form'
6666
requirements:
6767
_permission: 'access content'
6868

6969
fapi_example.ajax_demo:
7070
path: 'examples/fapi-example/ajax-demo'
7171
defaults:
7272
_form: '\Drupal\fapi_example\Form\AjaxDemo'
73-
_title: 'Ajax Form'
73+
_title: 'Ajax form'
7474
requirements:
7575
_permission: 'access content'
7676

7777
fapi_example.build_demo:
7878
path: 'examples/fapi-example/build-demo'
7979
defaults:
8080
_form: '\Drupal\fapi_example\Form\BuildDemo'
81-
_title: 'Build Form Demo'
81+
_title: 'Build form demo'
8282
requirements:
8383
_permission: 'access content'
8484

8585
fapi_example.ajax_addmore:
8686
path: 'examples/fapi-example/ajax-addmore'
8787
defaults:
8888
_form: '\Drupal\fapi_example\Form\AjaxAddMore'
89-
_title: 'Add-more Button'
89+
_title: 'Add-more button'
9090
requirements:
9191
_permission: 'access content'
9292

9393
fapi_example.multistep_form:
9494
path: 'examples/fapi-example/multistep-form'
9595
defaults:
9696
_form: '\Drupal\fapi_example\Form\MultistepForm'
97-
_title: 'Multistep Form'
97+
_title: 'Multistep form'
9898
requirements:
9999
_permission: 'access content'

fapi_example/templates/description.html.twig

+10-10
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ Description text for the Fapi Example.
1818
{% trans %}
1919

2020
<p>Form examples to demonstrate common UI solutions using the Drupal Form API</p>
21-
<p><a href={{ simple_form }}>Simple Form</a></p>
22-
<p><a href={{ multistep_form }}>Multistep Form</a></p>
23-
<p><a href={{ input_demo }}>Common Input Elements</a></p>
24-
<p><a href={{ build_demo }}>Build Form Demo</a></p>
25-
<p><a href={{ container_demo }}>Container Elements</a></p>
26-
<p><a href={{ state_demo }}>Form State Binding</a></p>
27-
<p><a href={{ vertical_tabs_demo }}>Vertical Tab Elements</a></p>
28-
<p><a href={{ ajax_demo }}>Ajax Form</a></p>
29-
<p><a href={{ ajax_addmore }}>Add-more Button</a></p>
30-
<p><a href={{ modal_form }} class='use-ajax' data-dialog-type= 'modal'>Modal Form</a></p>
21+
<p><a href={{ simple_form }}>Simple form</a></p>
22+
<p><a href={{ multistep_form }}>Multistep form</a></p>
23+
<p><a href={{ input_demo }}>Common input elements</a></p>
24+
<p><a href={{ build_demo }}>Build form demo</a></p>
25+
<p><a href={{ container_demo }}>Container elements</a></p>
26+
<p><a href={{ state_demo }}>Form state binding</a></p>
27+
<p><a href={{ vertical_tabs_demo }}>Vertical tab elements</a></p>
28+
<p><a href={{ ajax_demo }}>Ajax form</a></p>
29+
<p><a href={{ ajax_addmore }}>Add-more button</a></p>
30+
<p><a href={{ modal_form }} class='use-ajax' data-dialog-type= 'modal'>Modal form</a></p>
3131
{% endtrans %}

fapi_example/tests/src/Functional/MultistepFormTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public function testWizardForm() {
2121
$this->drupalGet('examples/fapi-example/multistep-form');
2222
$page = $this->getSession()->getPage();
2323
$h1 = $page->find('css', 'h1');
24-
$this->assertContains('Multistep Form', $h1->getText());
24+
$this->assertContains('Multistep form', $h1->getText());
2525
$desc = $page->find('css', '#edit-description label');
2626
$this->assertContains('page 1', $desc->getText());
2727
$this->submitForm([

js_example/js_example.links.menu.yml

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ js_example.info:
33
title: JavaScript Example
44
description: Some information about the JavaScript example.
55
route_name: js_example.info
6+
expanded: TRUE
67

78
js_example.weights:
89
title: JavaScript weighting in action
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
pager_example.page:
2-
title: Pager example
2+
title: Pager Example
33
route_name: pager_example.page

tabledrag_example/tabledrag_example.links.menu.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ tabledrag_example.description:
44
expanded: TRUE
55

66
tabledrag_example.simple_form:
7-
title: Simple Rows
7+
title: Simple rows
88
route_name: tabledrag_example.simple_form
99
parent: tabledrag_example.description
1010
weight: -4
@@ -16,13 +16,13 @@ tabledrag_example.parent_form:
1616
weight: -3
1717

1818
tabledrag_example.rootleaf_form:
19-
title: Roots And Leaves
19+
title: Roots and leaves
2020
route_name: tabledrag_example.rootleaf_form
2121
parent: tabledrag_example.description
2222
weight: -2
2323

2424
tabledrag_example.reset_form:
25-
title: Data Reset
25+
title: Data reset
2626
route_name: tabledrag_example.reset_form
2727
parent: tabledrag_example.description
2828
weight: -1

0 commit comments

Comments
 (0)