Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
55b18b6b
Commit
55b18b6b
authored
Aug 12, 2014
by
alexpott
Browse files
Issue
#2156657
by swentel | jhodgdon: Use the word "name" instead of "label" for display modes.
parent
2acb1fd6
Changes
2
Hide whitespace changes
Inline
Side-by-side
core/modules/entity/src/EntityDisplayModeListBuilder.php
View file @
55b18b6b
...
...
@@ -59,7 +59,7 @@ public static function createInstance(ContainerInterface $container, EntityTypeI
* {@inheritdoc}
*/
public
function
buildHeader
()
{
$header
[
'label'
]
=
t
(
'
Label
'
);
$header
[
'label'
]
=
t
(
'
Name
'
);
return
$header
+
parent
::
buildHeader
();
}
...
...
core/modules/entity/src/Form/EntityDisplayModeFormBase.php
View file @
55b18b6b
...
...
@@ -76,7 +76,7 @@ protected function init(FormStateInterface $form_state) {
public
function
form
(
array
$form
,
FormStateInterface
$form_state
)
{
$form
[
'label'
]
=
array
(
'#type'
=>
'textfield'
,
'#title'
=>
t
(
'
Label
'
),
'#title'
=>
t
(
'
Name
'
),
'#maxlength'
=>
100
,
'#default_value'
=>
$this
->
entity
->
label
(),
);
...
...
Write
Preview
Supports
Markdown
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