addDefaultContactFormLayout example

private const NEWSLETTER = 'newsletter';
    private const CONTACT_DE = 'Kontakt';
    private const NEWSLETTER_DE = 'Newsletter';

    public function getCreationTimestamp(): int
    {
        return 1575010262;
    }

    public function update(Connection $connection): void
    {
        $this->addDefaultContactFormLayout($connection, self::CONTACT, self::CONTACT_DE);
        $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);
        
Home | Imprint | This part of the site doesn't use cookies.