<?php declare( strict_types = 1 );
namespace ArboroProductListingLayout;
use Shopware\Core\Framework\Plugin;
use Shopware\Core\Framework\Plugin\Context\InstallContext;
class ArboroProductListingLayout extends Plugin {
// @todo: Zusatzfeld via Install-Routine hinzufügen, Standard-Layout zu setzen.
// public function install( InstallContext $installContext ): void {
// $customFieldSetRepository = $this->container->get( 'custom_field_set.repository' );
//
// $customFieldSetRepository->create( [
// [
// 'name' => 'custom_category_layout_configuration',
// 'config' => [
// 'label' => [
// 'de-DE' => 'Layout-Konfiguration',
// 'en-GB' => 'Layout configuration'
// ]
// ],
// 'customFields' => [
// 'name' => 'defaultLayout',
// 'type' => CustomFieldTypes::JSON,
// 'config' => [
// 'type' => 'select',
// 'label' => [
// 'de-DE' => 'Standard-Layout',
// 'en-GB' => 'Default layout',
// ],
// 'componentName' => 'sw-multi-select',
// 'customFieldType' => 'select',
// 'customFieldPosition' => 0,
// 'entity' => 'products',
// 'options' => [
// [
// 'value' => 'grid',
// 'label' => [
// 'de-DE' => "Raster",
// 'en-GB' => "Grid"
// ]
// ],
// [
// 'value' => 'list',
// 'label' => [
// 'de-DE' => "Liste",
// 'en-GB' => "List"
// ]
// ],
// ]
// ]
// ],
// 'relations' => [
// [
// 'entityName' => 'category'
// ]
// ]
// ]
// ], $installContext->getContext() );
// }
}