...
Codeblock | ||||||
---|---|---|---|---|---|---|
| ||||||
use Brandbox\PrintCore\PrintDocument\Structure; class Variants extends Structure\Lib\Request\Listener\PrintDocumentStructure\PopulateVariants\PopulateVariantsAbstract { public const PLUGIN = 'View/PrintParagraph'; public const VIEW = 'paragraph'; public const VARIANTS = [ 'MyKeyVariant1' => [ 'label' => 'i18n:View/ProtektorPrintParagraph.EnumerationVariantsFooterCount', 'variants' => ['position-footer'] ], 'MyKeyVariant2' => [ 'label' => 'i18n:View/ProtektorPrintParagraph.EnumerationVariantsProductHeadline', 'variants' => ['product-headline'] ] ]; } |
...