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
c3b76edf
Commit
c3b76edf
authored
Oct 15, 2015
by
alexpott
Browse files
Issue
#2588553
by claudiu.cristea: Image widget summary is lying when the image preview is disabled
parent
210468fe
Changes
1
Hide whitespace changes
Inline
Side-by-side
core/modules/image/src/Plugin/Field/FieldWidget/ImageWidget.php
View file @
c3b76edf
...
...
@@ -71,7 +71,7 @@ public function settingsSummary() {
$preview_image_style
=
t
(
'Preview image style: @style'
,
array
(
'@style'
=>
$image_styles
[
$image_style_setting
]));
}
else
{
$preview_image_style
=
t
(
'
Original image
'
);
$preview_image_style
=
t
(
'
No preview
'
);
}
array_unshift
(
$summary
,
$preview_image_style
);
...
...
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