use Shopware\Bundle\ContentTypeBundle\Structs\Field;
class TypeField extends AbstractSingleSelectionField
{ public static function getResolver(): string
{ return TypeResolver::
class;
} public static function getExtjsOptions(Field
$field): array
{ $options = parent::
getExtjsOptions($field);
$options['model'
] =
explode('-',
$field->
getTypeName())[0
];
return $options;
}}