oms-Labeling/Theme/Backend/label-render.tpl.php
Dennis Eichhorn 188cf0f34e
Some checks failed
Image optimization / general_image_workflow (push) Has been cancelled
CI / general_module_workflow_php (push) Has been cancelled
CI / general_module_workflow_js (push) Has been cancelled
fix permissions
2025-04-02 14:15:05 +00:00

15 lines
331 B
PHP

<?php declare(strict_types=1);
$layout = $this->data['layout'];
$template = \reset($layout->template->sources);
$item = $this->data['item'];
$label = include_once $template->getAbsolutePath();
if (isset($this->data['path'])) {
\imagepng($label->render(), $this->data['path']);
} else {
\imagepng($label->render());
}