Module: CCS::FrontendHelpers::GovUKFrontend::PhaseBanner
- Included in:
- CCS::FrontendHelpers::GovUKFrontend
- Defined in:
- lib/ccs/frontend_helpers/govuk_frontend/phase_banner.rb
Overview
GOV.UK Phase banner
This helper is used for generating the phase banner component from the GDS - Components - Phase banner
Instance Method Summary collapse
-
#govuk_phase_banner(tag_options, text = nil, **options) { ... } ⇒ ActiveSupport::SafeBuffer
Generates the HTML for the GOV.UK Phase banner component.
Instance Method Details
#govuk_phase_banner(tag_options, text = nil, **options) { ... } ⇒ ActiveSupport::SafeBuffer
Generates the HTML for the GOV.UK Phase banner component
24 25 26 |
# File 'lib/ccs/frontend_helpers/govuk_frontend/phase_banner.rb', line 24 def (, text = nil, **, &) Components::GovUK::PhaseBanner.new(context: self, tag_options: , text: text, **).render(&) end |