Class: GovukNavigationHelpers::RelatedNavigationSidebar

Inherits:
Object
  • Object
show all
Defined in:
lib/govuk_navigation_helpers/related_navigation_sidebar.rb

Instance Method Summary collapse

Constructor Details

#initialize(content_item) ⇒ RelatedNavigationSidebar

Returns a new instance of RelatedNavigationSidebar.



6
7
8
# File 'lib/govuk_navigation_helpers/related_navigation_sidebar.rb', line 6

def initialize(content_item)
  @content_item = ContentItem.new content_item
end

Instance Method Details



10
11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'lib/govuk_navigation_helpers/related_navigation_sidebar.rb', line 10

def related_navigation_sidebar
  {
    related_items: related_items,
    collections: related_collections,
    statistical_data_sets: related_statistical_data_sets,
    topics: related_topics,
    topical_events: related_topical_events,
    policies: related_policies,
    publishers: related_organisations,
    world_locations: related_world_locations,
    worldwide_organisations: related_worldwide_organisations,
    other: [related_external_links, related_contacts]
  }
end