Module: CCS::FrontendHelpers::GovUKFrontend::ServiceNavigation

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

Overview

GOV.UK Service Navigation

This helper is used for generating the service navigation component from the GDS - Components - Service navigations

Instance Method Summary collapse

Instance Method Details

#govuk_service_navigationActiveSupport::SafeBuffer

Generates the HTML for the GOV.UK Service navigation component

Parameters:

  • navigation (Hash)

    options for the navigation section of the service navigation. See Navigation#initialize for details of the options.

  • menu_button (Hash)

    options for the menu button in the service navigation. See Navigation#initialize for details of the options.

  • service (Hash)

    options for the service name

  • options (Hash)

    options that will be used in customising the HTML

Returns:

  • (ActiveSupport::SafeBuffer)


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

def govuk_service_navigation(**)
  Components::GovUK::ServiceNavigation.new(context: self, **).render
end