oms-Labeling/Theme/Backend/label-render.tpl.php
Dennis Eichhorn 8e25d88986
Some checks are pending
Image optimization / general_image_workflow (push) Waiting to run
CI / general_module_workflow_php (push) Waiting to run
CI / general_module_workflow_js (push) Waiting to run
bug fixes
2025-04-02 13:33:50 +00:00

15 lines
331 B
PHP
Executable File

<?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());
}