Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
Issue forks
colorbox-3127345
Commits
a54155de
Commit
a54155de
authored
Mar 20, 2017
by
RenatoG
Committed by
frjo
Mar 20, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#2862105
by renatog: Fixed wrong variable in calculateDependencies
parent
23e97950
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/Plugin/Field/FieldFormatter/ColorboxFormatter.php
src/Plugin/Field/FieldFormatter/ColorboxFormatter.php
+2
-2
No files found.
src/Plugin/Field/FieldFormatter/ColorboxFormatter.php
View file @
a54155de
...
...
@@ -387,7 +387,7 @@ class ColorboxFormatter extends ImageFormatterBase implements ContainerFactoryPl
$dependencies
=
parent
::
calculateDependencies
();
$style_ids
=
[];
$style_ids
[]
=
$this
->
getSetting
(
'colorbox_node_style'
);
if
(
!
empty
(
$
s
etting
s
[
'colorbox_node_style_first'
]
))
{
if
(
!
empty
(
$
this
->
getS
etting
(
'colorbox_node_style_first'
)
))
{
$style_ids
[]
=
$this
->
getSetting
(
'colorbox_node_style_first'
);
}
$style_ids
[]
=
$this
->
getSetting
(
'colorbox_image_style'
);
...
...
@@ -409,7 +409,7 @@ class ColorboxFormatter extends ImageFormatterBase implements ContainerFactoryPl
$changed
=
parent
::
onDependencyRemoval
(
$dependencies
);
$style_ids
=
[];
$style_ids
[
'colorbox_node_style'
]
=
$this
->
getSetting
(
'colorbox_node_style'
);
if
(
!
empty
(
$
s
etting
s
[
'colorbox_node_style_first'
]
))
{
if
(
!
empty
(
$
this
->
getS
etting
(
'colorbox_node_style_first'
)
))
{
$style_ids
[
'colorbox_node_style_first'
]
=
$this
->
getSetting
(
'colorbox_node_style_first'
);
}
$style_ids
[
'colorbox_image_style'
]
=
$this
->
getSetting
(
'colorbox_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