Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
C
colorbox-3183921
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Issue forks
colorbox-3183921
Commits
abc987d3
Commit
abc987d3
authored
Sep 26, 2020
by
paulocs
Committed by
Neslee Canil Pinto
Sep 26, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#3173192
by paulocs: Fixing drupal best practices
parent
e4411d0e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
2 deletions
+0
-2
colorbox.theme.inc
colorbox.theme.inc
+0
-2
No files found.
colorbox.theme.inc
View file @
abc987d3
...
...
@@ -25,7 +25,6 @@ use Drupal\image\Entity\ImageStyle;
*/
function
template_preprocess_colorbox_formatter
(
&
$variables
)
{
// @codingStandardsIgnoreEnd
static
$gallery_token
=
NULL
;
$item
=
$variables
[
'item'
];
$item_attributes
=
isset
(
$variables
[
'item_attributes'
])
?
$variables
[
'item_attributes'
]
:
[];
...
...
@@ -38,7 +37,6 @@ function template_preprocess_colorbox_formatter(&$variables) {
// Build the caption.
$entity_title
=
$entity
->
label
();
$entity_type
=
$entity
->
getEntityTypeId
();
$entity_bundle
=
$entity
->
bundle
();
switch
(
$settings
[
'colorbox_caption'
])
{
case
'auto'
:
...
...
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