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
68322396
Commit
68322396
authored
Mar 21, 2014
by
Angie Byron
Browse files
Issue
#2078001
by RoSk0, JayeshSolanki | alexanansi: Modernize responsive_image.module forms.
parent
672ac3f9
Changes
1
Hide whitespace changes
Inline
Side-by-side
core/modules/responsive_image/lib/Drupal/responsive_image/Form/ResponsiveImageMappingDeleteForm.php
View file @
68322396
...
...
@@ -15,7 +15,7 @@ class ResponsiveImageMappingDeleteForm extends EntityConfirmFormBase {
* {@inheritdoc}
*/
public
function
getQuestion
()
{
return
t
(
'Are you sure you want to delete the responsive image mapping %title?'
,
array
(
'%title'
=>
$this
->
entity
->
label
()));
return
$this
->
t
(
'Are you sure you want to delete the responsive image mapping %title?'
,
array
(
'%title'
=>
$this
->
entity
->
label
()));
}
/**
...
...
@@ -31,7 +31,7 @@ public function getCancelRoute() {
* {@inheritdoc}
*/
public
function
getConfirmText
()
{
return
t
(
'Delete'
);
return
$this
->
t
(
'Delete'
);
}
/**
...
...
@@ -39,7 +39,7 @@ public function getConfirmText() {
*/
public
function
submit
(
array
$form
,
array
&
$form_state
)
{
$this
->
entity
->
delete
();
drupal_set_message
(
t
(
'Responsive image mapping %label has been deleted.'
,
array
(
'%label'
=>
$this
->
entity
->
label
())));
drupal_set_message
(
$this
->
t
(
'Responsive image mapping %label has been deleted.'
,
array
(
'%label'
=>
$this
->
entity
->
label
())));
watchdog
(
'responsive_image'
,
'Responsive image mapping %label has been deleted.'
,
array
(
'%label'
=>
$this
->
entity
->
label
()),
WATCHDOG_NOTICE
);
$form_state
[
'redirect_route'
][
'route_name'
]
=
'responsive_image.mapping_page'
;
}
...
...
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