Module: CCS::FrontendHelpers::GovUKFrontend::BackLink
- Included in:
- CCS::FrontendHelpers::GovUKFrontend
- Defined in:
- lib/ccs/frontend_helpers/govuk_frontend/back_link.rb
Overview
GOV.UK Back Link
This helper is used for generating the back link component from the GDS - Components - Back link
Instance Method Summary collapse
-
#govuk_back_link(text, href, **options) ⇒ ActiveSupport::SafeBuffer
Generates the HTML for the GOV.UK Back link component.
Instance Method Details
#govuk_back_link(text, href, **options) ⇒ ActiveSupport::SafeBuffer
Generates the HTML for the GOV.UK Back link component
22 23 24 |
# File 'lib/ccs/frontend_helpers/govuk_frontend/back_link.rb', line 22 def govuk_back_link(text, href, **) Components::GovUK::BackLink.new(context: self, text: text, href: href, **).render end |