BarcodeLabelGridPaperLayout

Extends \Shopware\Plugins\ViisonCommon\Classes\Document\GridPaperLayout

package

Default

Methods

Creates and returns the paper layout for a $layoutIdentifier, $paperWidth and $paperHeight. To easily model single label paper layouts, a custom grid paper layout that consists of only one cell is created, if the barcode label preset refers to a non-standard grid paper layout.

createLabelGridPaperLayout(string $layoutIdentifier, float|null $paperWidth, float|null $paperHeight) : \Shopware\Plugins\ViisonCommon\Classes\Document\GridPaperLayout
static
Throws
\InvalidArgumentException

if a custom layout should be created, but $paperWidth or $paperHeight are zero.

Arguments

$layoutIdentifier

string

$paperWidth

float|null

$paperHeight

float|null

Response

\Shopware\Plugins\ViisonCommon\Classes\Document\GridPaperLayout

createLabelGridPaperLayoutForPreset

createLabelGridPaperLayoutForPreset(\Shopware\CustomModels\ViisonPickwareERP\BarcodeLabel\BarcodeLabelPreset $preset) : \Shopware\Plugins\ViisonCommon\Classes\Document\GridPaperLayout
static

Arguments

Response

\Shopware\Plugins\ViisonCommon\Classes\Document\GridPaperLayout

Returns all grid paper layouts, which are available for barcode label printing.

getLabelPresetGridPaperLayouts() : array<mixed,\Shopware\Plugins\ViisonCommon\Classes\Document\GridPaperLayout>
static

Response

array<mixed,\Shopware\Plugins\ViisonCommon\Classes\Document\GridPaperLayout>