ArticleItemProvider

Implements \Shopware\Plugins\ViisonPickwareERP\Components\BarcodeLabel\BarcodeLabelItemProvider

package

Default

Methods

ArticleItemProvider constructor.

__construct(\Shopware\Components\Model\ModelManager $entityManager, \Shopware\Plugins\ViisonPickwareERP\Components\BarcodeLabel\BarcodeRenderer $barcodeRenderer, \Shopware\Plugins\ViisonCommon\Components\ImageService $imageService, \Shopware\Plugins\ViisonPickwareERP\Components\BarcodeLabel\AbstractBarcodeLabelType $type, array<mixed,\Shopware\CustomModels\ViisonPickwareERP\BarcodeLabel\ArticleBarcodeLabel> $labels, \Shopware\Models\Shop\Shop $shop, \Shopware\Models\Customer\Group $customerGroup) 

Arguments

$entityManager

\Shopware\Components\Model\ModelManager

$imageService

\Shopware\Plugins\ViisonCommon\Components\ImageService

$shop

\Shopware\Models\Shop\Shop

$customerGroup

\Shopware\Models\Customer\Group

Returns all shop-specific information which is accessible inside barcode label templates.

getContext() : array
inheritdoc

Response

array

Returns all specific information needed in the barcode label templates for a given list of barcode labels.

getItems() : array

If a single label will be printed multiple times, the returned array contains all detail information for that label exactly as many times as it will be printed.

inheritdoc

Response

array

Returns the current barcode label type.

getType() : \Shopware\Plugins\ViisonPickwareERP\Components\BarcodeLabel\AbstractBarcodeLabelType

Condenses the barcode label array to one label object per identifier. The returned array is sorted by the identifiers as well.

groupBarcodeLabelsByIdentifier(array<mixed,\Shopware\Plugins\ViisonPickwareERP\Components\BarcodeLabel\GroupableBarcodeLabel> $barcodeLabels) : array<mixed,\Shopware\Plugins\ViisonPickwareERP\Components\BarcodeLabel\GroupableBarcodeLabel>
inherited

Constants

Default customer group of shopware.

KEY