Module: CCS::FrontendHelpers::GovUKFrontend::CookieBanner
- Included in:
- CCS::FrontendHelpers::GovUKFrontend
- Defined in:
- lib/ccs/frontend_helpers/govuk_frontend/cookie_banner.rb
Overview
GOV.UK Cookie Banner
This helper is used for generating the cookie banner component from the GDS - Components - Cookie banner
Instance Method Summary collapse
-
#govuk_cookie_banner(messages, **options) ⇒ ActiveSupport::SafeBuffer
Generates the HTML for the GOV.UK Cookie banner component.
Instance Method Details
#govuk_cookie_banner(messages, **options) ⇒ ActiveSupport::SafeBuffer
Generates the HTML for the GOV.UK Cookie banner component
22 23 24 |
# File 'lib/ccs/frontend_helpers/govuk_frontend/cookie_banner.rb', line 22 def (, **) Components::GovUK::CookieBanner.new(context: self, messages: , **).render end |