Commit 6a13a13c authored by Steven Jones's avatar Steven Jones Committed by Steven Jones
Browse files

Issue #2805031 by Steven Jones: Modify image style list to display pipeline used

parent 5400ab7d
......@@ -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;
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment