Class: GovukNavigationHelpers::TaxonomySidebar

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

Instance Method Summary collapse

Constructor Details

#initialize(content_item) ⇒ TaxonomySidebar

Returns a new instance of TaxonomySidebar.



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

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

Instance Method Details



10
11
12
13
14
15
# File 'lib/govuk_navigation_helpers/taxonomy_sidebar.rb', line 10

def sidebar
  {
    items: related_items,
    collections: collections,
  }
end