Class: GovukPublishingComponents::Presenters::CuratedTaxonomySidebarLinks

Inherits:
Object
  • Object
show all
Defined in:
lib/govuk_publishing_components/presenters/curated_taxonomy_sidebar_links.rb

Instance Method Summary collapse

Constructor Details

#initialize(content_item) ⇒ CuratedTaxonomySidebarLinks

Returns a new instance of CuratedTaxonomySidebarLinks.



5
6
7
# File 'lib/govuk_publishing_components/presenters/curated_taxonomy_sidebar_links.rb', line 5

def initialize(content_item)
  @content_item = content_item
end

Instance Method Details



9
10
11
12
13
14
# File 'lib/govuk_publishing_components/presenters/curated_taxonomy_sidebar_links.rb', line 9

def related_items
  @related_items ||=
    taxon_links +
    elsewhere_on_gov_uk_links +
    elsewhere_on_the_web_links
end