private function randomCustomField(string
$prefix, DemodataContext
$context): array
{ $types =
[ CustomFieldTypes::INT,
CustomFieldTypes::FLOAT,
CustomFieldTypes::DATETIME,
CustomFieldTypes::BOOL,
CustomFieldTypes::TEXT,
];
$name =
$context->
getFaker()->
unique()->
words(3, true
);
$type =
$types[array_rand($types)];
$config =
match ($type) { CustomFieldTypes::INT =>
[ 'componentName' => 'sw-field',
'type' => 'number',
'numberType' => 'int',
'customFieldType' => 'number',
'label' =>
[ 'en-GB' =>
$name,
],