Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
fef7427c
Commit
fef7427c
authored
Nov 26, 2013
by
Nathaniel Catchpole
Browse files
Issue
#2102445
by disasm: Remove drupal_set_title in content_translation module controllers.
parent
25722a62
Changes
1
Hide whitespace changes
Inline
Side-by-side
core/modules/content_translation/lib/Drupal/content_translation/ContentTranslationController.php
View file @
fef7427c
...
...
@@ -104,7 +104,7 @@ public function entityFormAlter(array &$form, array &$form_state, EntityInterfac
$t_args
=
array
(
'%language'
=>
$languages
[
$form_langcode
]
->
name
,
'%title'
=>
$entity
->
label
());
$title
=
empty
(
$source_langcode
)
?
$title
.
' ['
.
t
(
'%language translation'
,
$t_args
)
.
']'
:
t
(
'Create %language translation of %title'
,
$t_args
);
}
drupal_set_title
(
$title
,
PASS_THROUGH
)
;
$form
[
'#title'
]
=
$title
;
}
// Display source language selector only if we are creating a new
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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