Sha256: 35b682faad2586fdddb9db8d8479489223151aac7aa321d8b5e4d007827e001f

Contents?: true

Size: 902 Bytes

Versions: 20

Compression:

Stored size: 902 Bytes

Contents

# frozen_string_literal: true

require_relative '../../components/govuk/cookie_banner'

module CCS
  module FrontendHelpers
    module GovUKFrontend
      # = GOV.UK Cookie Banner
      #
      # This helper is used for generating the cookie banner component from the
      # {https://design-system.service.gov.uk/components/cookie-banner GDS - Components - Cookie banner}

      module CookieBanner
        # Generates the HTML for the GOV.UK Cookie banner component
        #
        # @param (see CCS::Components::GovUK::CookieBanner#initialize)
        #
        # @option (see CCS::Components::GovUK::CookieBanner#initialize)
        #
        # @return (see CCS::Components::GovUK::CookieBanner#render)

        def govuk_cookie_banner(messages, **options)
          Components::GovUK::CookieBanner.new(context: self, messages: messages, **options).render
        end
      end
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
ccs-frontend_helpers-2.1.0 lib/ccs/frontend_helpers/govuk_frontend/cookie_banner.rb
ccs-frontend_helpers-2.0.0 lib/ccs/frontend_helpers/govuk_frontend/cookie_banner.rb
ccs-frontend_helpers-1.2.0 lib/ccs/frontend_helpers/govuk_frontend/cookie_banner.rb
ccs-frontend_helpers-1.1.2 lib/ccs/frontend_helpers/govuk_frontend/cookie_banner.rb
ccs-frontend_helpers-1.1.1 lib/ccs/frontend_helpers/govuk_frontend/cookie_banner.rb
ccs-frontend_helpers-1.1.0 lib/ccs/frontend_helpers/govuk_frontend/cookie_banner.rb
ccs-frontend_helpers-1.1.0.beta0 lib/ccs/frontend_helpers/govuk_frontend/cookie_banner.rb
ccs-frontend_helpers-1.0.0 lib/ccs/frontend_helpers/govuk_frontend/cookie_banner.rb
ccs-frontend_helpers-0.5.0.beta1 lib/ccs/frontend_helpers/govuk_frontend/cookie_banner.rb
ccs-frontend_helpers-0.5.0.beta0 lib/ccs/frontend_helpers/govuk_frontend/cookie_banner.rb
ccs-frontend_helpers-0.3.0 lib/ccs/frontend_helpers/govuk_frontend/cookie_banner.rb
ccs-frontend_helpers-0.2.0 lib/ccs/frontend_helpers/govuk_frontend/cookie_banner.rb
ccs-frontend_helpers-0.1.2 lib/ccs/frontend_helpers/govuk_frontend/cookie_banner.rb
ccs-frontend_helpers-0.1.1 lib/ccs/frontend_helpers/govuk_frontend/cookie_banner.rb
ccs-frontend_helpers-0.1.1.rc.1 lib/ccs/frontend_helpers/govuk_frontend/cookie_banner.rb
ccs-frontend_helpers-0.1.0.rc.7 lib/ccs/frontend_helpers/govuk_frontend/cookie_banner.rb
ccs-frontend_helpers-0.1.0.rc.6 lib/ccs/frontend_helpers/govuk_frontend/cookie_banner.rb
ccs-frontend_helpers-0.1.0.rc.5 lib/ccs/frontend_helpers/govuk_frontend/cookie_banner.rb
ccs-frontend_helpers-0.1.0.rc.4 lib/ccs/frontend_helpers/govuk_frontend/cookie_banner.rb
ccs-frontend_helpers-0.1.0.rc.3 lib/ccs/frontend_helpers/govuk_frontend/cookie_banner.rb