class GovukPublishingComponents::AppHelpers::TaxonBreadcrumbs::ContentItem
def base_path
def base_path content_item.fetch("base_path") end
def initialize(content_item)
def initialize(content_item) @content_item = content_item end
def parent_taxon
def parent_taxon @parent_taxon ||= begin parent_content_item = content_item.dig("links", "parent_taxons", 0) ContentItem.new(parent_content_item) unless parent_content_item.nil? end end
def phase_is_live?(taxon)
def phase_is_live?(taxon) taxon["phase"] == "live" end
def title
def title content_item.fetch("title") end