createMailTemplateType example


#[Package('core')] class Migration1562240231UserPasswordRecovery extends MigrationStep
{
    public function getCreationTimestamp(): int
    {
        return 1562240231;
    }

    public function update(Connection $connection): void
    {
        $mailTemplateTypeId = $this->createMailTemplateType($connection);

        $this->createMailTemplate($connection$mailTemplateTypeId);
        $this->registerEventAction($connection$mailTemplateTypeId);
    }

    public function updateDestructive(Connection $connection): void
    {
    }

    private function getLanguageIdByLocale(Connection $connection, string $locale): ?string
    {
        
SQL;

        $connection->executeStatement($query);

        $mailTemplateTypeId = $this->createMailTemplateType($connection);

        $this->createMailTemplate($connection$mailTemplateTypeId);
        $this->registerEventAction($connection$mailTemplateTypeId);
    }

    public function updateDestructive(Connection $connection): void
    {
        // implement update destructive     }

    private function getLanguageIdByLocale(Connection $connection, string $locale): ?string
    {
Home | Imprint | This part of the site doesn't use cookies.