Module: CCS::FrontendHelpers::GovUKFrontend::ExitThisPage
- Included in:
- CCS::FrontendHelpers::GovUKFrontend
- Defined in:
- lib/ccs/frontend_helpers/govuk_frontend/exit_this_page.rb
Overview
GOV.UK Exit this page
This is used to generate the exit this page component from the GDS - Components - Exit this page
Instance Method Summary collapse
-
#govuk_exit_this_page(text = nil, redirect_url = nil, **options) ⇒ ActiveSupport::SafeBuffer
Generates the HTML for the GOV.UK Exit this page component.
Instance Method Details
#govuk_exit_this_page(text = nil, redirect_url = nil, **options) ⇒ ActiveSupport::SafeBuffer
Generates the HTML for the GOV.UK Exit this page component
22 23 24 |
# File 'lib/ccs/frontend_helpers/govuk_frontend/exit_this_page.rb', line 22 def govuk_exit_this_page(text = nil, redirect_url = nil, **) Components::GovUK::ExitThisPage.new(context: self, text: text, redirect_url: redirect_url, **).render end |