$data = parent::
toArray($defaultLocale);
foreach (self::TRANSLATABLE_FIELDS
as $TRANSLATABLE_FIELD) { $translatableField = self::
kebabCaseToCamelCase($TRANSLATABLE_FIELD);
$data[$translatableField] =
$this->
ensureTranslationForDefaultLanguageExist( $data[$translatableField],
$defaultLocale );
} $data['config'
] =
array_map(static fn (CustomFieldType
$field) =>
$field->
toEntityPayload(),
$this->constraints
);
return $data;
} public function getIdentifier(): string
{ return $this->identifier;
} /**
* @return array<string>
*/