Module: CCS::FrontendHelpers::GovUKFrontend::Footer

Included in:
CCS::FrontendHelpers::GovUKFrontend
Defined in:
lib/ccs/frontend_helpers/govuk_frontend/footer.rb

Overview

GOV.UK Footer

This helper is used for generating the footer component from the GDS - Components - Footer

Instance Method Summary collapse

Instance Method Details

Generates the HTML for the GOV.UK Footer component

Parameters:

  • navigation (Array<Hash>)

    an array of sections for the footer navigation. See Navigation#initialize for details of the items in the array.

  • meta (Hash)

    ptions for the meta section of the footer. See Meta#initialize for details of the options.

  • options (Hash)

    options that will be used in customising the HTML

Returns:

  • (ActiveSupport::SafeBuffer)


22
23
24
# File 'lib/ccs/frontend_helpers/govuk_frontend/footer.rb', line 22

def govuk_footer(**)
  Components::GovUK::Footer.new(context: self, **).render
end