Sha256: 5602bc20fd4c2c4f2d289cda99bec9eaf9bf6a5a09df1653fc90f18b38043933

Contents?: true

Size: 606 Bytes

Versions: 7

Compression:

Stored size: 606 Bytes

Contents

content_element_vendors =
  entry_config.content_element_consent_vendors.by_content_element_id(entry)

json.content_element_consent_vendors(content_element_vendors)

I18n.with_locale(entry.locale) do
  json.consent_vendors do
    json.array!(content_element_vendors.values.uniq) do |name|
      json.name name
      json.display_name t("pageflow_scrolled.consent_vendors.#{name}.name")
      json.description t("pageflow_scrolled.consent_vendors.#{name}.description")
      json.opt_in_prompt t("pageflow_scrolled.consent_vendors.#{name}.opt_in_prompt")
      json.paradigm 'lazy opt-in'
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
pageflow-17.0.4 entry_types/scrolled/app/views/pageflow_scrolled/entry_json_seed/_consent_vendors.json.jbuilder
pageflow-17.0.3 entry_types/scrolled/app/views/pageflow_scrolled/entry_json_seed/_consent_vendors.json.jbuilder
pageflow-17.0.2 entry_types/scrolled/app/views/pageflow_scrolled/entry_json_seed/_consent_vendors.json.jbuilder
pageflow-17.0.1 entry_types/scrolled/app/views/pageflow_scrolled/entry_json_seed/_consent_vendors.json.jbuilder
pageflow-17.0.0 entry_types/scrolled/app/views/pageflow_scrolled/entry_json_seed/_consent_vendors.json.jbuilder
pageflow-16.2.0 entry_types/scrolled/app/views/pageflow_scrolled/entry_json_seed/_consent_vendors.json.jbuilder
pageflow-16.1.0 entry_types/scrolled/app/views/pageflow_scrolled/entry_json_seed/_consent_vendors.json.jbuilder