$this->
addDefaultContactFormLayout($connection, self::NEWSLETTER, self::NEWSLETTER_DE
);
} public function updateDestructive(Connection
$connection): void
{ } private function addDefaultContactFormLayout(Connection
$connection, string
$formType, string
$formTypeDe): void
{ $slotTranslations =
[];
$languageEn = Uuid::
fromHexToBytes(Defaults::LANGUAGE_SYSTEM
);
$languageDe =
$this->
getLanguageDeId($connection);
$versionId = Uuid::
fromHexToBytes(Defaults::LIVE_VERSION
);
// cms page
$page =
[ 'id' => Uuid::
randomBytes(),
'type' => 'page',
'locked' => 1,
'created_at'
=> (new \
DateTime())->
format(Defaults::STORAGE_DATE_TIME_FORMAT
),
];
$pageEng =
[ 'cms_page_id' =>
$page['id'
],