<?php declare(strict_types=1);
namespace SmsBecoTechnicCategoryCustomListing;
use Shopware\Core\Framework\Plugin;
use Shopware\Core\Framework\Plugin\Context\InstallContext;
use Shopware\Core\System\CustomField\CustomFieldTypes;
class SmsBecoTechnicCategoryCustomListing extends Plugin
{
/**
* @param InstallContext $installContext
*/
public function install(InstallContext $installContext): void
{
parent::install($installContext);
//$this->installCustomFields($installContext);
}
/**
* @param InstallContext $installContext
*/
private function installCustomFields(InstallContext $installContext)
{
// $customFieldSetRepository = $this->container->get('custom_field_set.repository');
// $customFieldSetRepository->create(
// [
// [
// 'name' => 'sms_custom_data',
// 'config' => [
// 'label' => [
// 'en-GB' => 'Custom Fieldset',
// 'de-DE' => 'Custom Fieldset',
// ],
// ],
// 'customFields' => [
// [
// 'name' => 'sms_category_type',
// 'type' => CustomFieldTypes::TEXT,
// 'config' => [
// 'componentName' => 'sw-field',
// 'customFieldType' => 'text',
// 'label' => [
// 'en-GB' => 'Category Type',
// 'de-DE' => 'Kategorie-Typ',
// ],
// ],
// ],
// ],
// 'relations' => [
// [
// 'entityName' => 'category',
// ],
// ],
// ],
// ],
// $installContext->getContext()
// );
}
}