class GovukPublishingComponents::Presenters::BrexitCtaHelper
Constants
- BREXIT_HUB_PAGE_IDS
Public Class Methods
new(content_item)
click to toggle source
# File lib/govuk_publishing_components/presenters/brexit_cta_helper.rb, line 9 def initialize(content_item) @content_item = content_item end
Public Instance Methods
link_path_key()
click to toggle source
# File lib/govuk_publishing_components/presenters/brexit_cta_helper.rb, line 21 def link_path_key use_brexit_hub_page_navigation? ? "components.related_navigation.transition.hub_page_link_path" : "components.related_navigation.transition.link_path" end
link_text_key()
click to toggle source
# File lib/govuk_publishing_components/presenters/brexit_cta_helper.rb, line 17 def link_text_key use_brexit_hub_page_navigation? ? "components.related_navigation.transition.hub_page_link_text" : "components.related_navigation.transition.link_text" end
title_key()
click to toggle source
# File lib/govuk_publishing_components/presenters/brexit_cta_helper.rb, line 13 def title_key use_brexit_hub_page_navigation? ? "components.related_navigation.transition.hub_page_title" : "components.related_navigation.transition.title" end