Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Issue forks
imageapi_optimize-3226168
Commits
6a13a13c
Commit
6a13a13c
authored
Sep 27, 2016
by
Steven Jones
Committed by
Steven Jones
Sep 27, 2016
Browse files
Issue
#2805031
by Steven Jones: Modify image style list to display pipeline used
parent
5400ab7d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/ImageStyleWithPipelineListBuilder.php
View file @
6a13a13c
...
...
@@ -13,6 +13,11 @@ class ImageStyleWithPipelineListBuilder extends ImageStyleListBuilder {
public
function
buildHeader
()
{
$header
=
parent
::
buildHeader
();
$header
[
'pipeline'
]
=
$this
->
t
(
'Image Optimize Pipeline'
);
// Move 'operations' to the end.
$operations
=
$header
[
'operations'
];
unset
(
$header
[
'operations'
]);
$header
[
'operations'
]
=
$operations
;
return
$header
;
}
...
...
@@ -24,6 +29,11 @@ class ImageStyleWithPipelineListBuilder extends ImageStyleListBuilder {
$pipelineNames
=
imageapi_optimize_pipeline_options
(
FALSE
);
$row
=
parent
::
buildRow
(
$entity
);
$row
[
'pipeline'
]
=
isset
(
$pipelineNames
[
$entity
->
getPipeline
()])
?
$pipelineNames
[
$entity
->
getPipeline
()]
:
''
;
// Move 'operations' to the end.
$operations
=
$row
[
'operations'
];
unset
(
$row
[
'operations'
]);
$row
[
'operations'
]
=
$operations
;
return
$row
;
}
}
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