Sha256: 79bee592b6ff34807afb5799dfa5490bc323950f23884833f89452e7b1f24284
Contents?: true
Size: 772 Bytes
Versions: 4
Compression:
Stored size: 772 Bytes
Contents
# frozen-string_literal: true module Decidim module Conferences class ConferenceRegistrationNotificationEvent < Decidim::Events::BaseEvent include Decidim::Events::NotificationEvent include Decidim::SanitizeHelper def notification_title I18n.t("notification_title", **i18n_options).html_safe end def i18n_options { resource_title: resource_title, resource_path: resource_path, resource_url: resource_url, scope: event_name } end def resource_title return unless resource title = decidim_sanitize_translated(resource.title) Decidim::ContentProcessor.render_without_format(title, links: false).html_safe end end end end
Version data entries
4 entries across 4 versions & 1 rubygems