CatalogueWrapperService

uk.gov.hmrc.cataloguewrapper.services.CatalogueWrapperService
@Singleton
class CatalogueWrapperService(navigationCache: CatalogueNavigationCache, config: CatalogueWrapperConfig, standardLayout: StandardCatalogueLayout)(implicit ec: ExecutionContext)

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def catalogueMenuBar(activeItemId: Option[String] = ..., showSignOut: Boolean = ..., signOutUrl: Option[String] = ...)(implicit hc: HeaderCarrier, request: RequestHeader, messages: Messages): Future[Appendable]

Refresh navigation data from the backend (or fall back to cache) and render only the navbar/search bar. Use this when you want to embed the menu bar into an existing layout rather than replacing the whole page shell.

Refresh navigation data from the backend (or fall back to cache) and render only the navbar/search bar. Use this when you want to embed the menu bar into an existing layout rather than replacing the whole page shell.

Attributes

def catalogueMenuBarWithMenu(menu: BannerMenu, activeItemId: Option[String] = ..., showSignOut: Boolean = ..., signOutUrl: Option[String] = ...)(implicit request: RequestHeader, messages: Messages): Appendable

Render only the navbar/search bar with an already-fetched menu.

Render only the navbar/search bar with an already-fetched menu.

Attributes

def standardCatalogueLayout(content: Appendable, pageTitle: Option[String] = ..., activeItemId: Option[String] = ..., showSignOut: Boolean = ..., signOutUrl: Option[String] = ..., scripts: Seq[Appendable] = ..., stylesheets: Seq[Appendable] = ..., fullWidth: Boolean = ...)(implicit hc: HeaderCarrier, request: RequestHeader, messages: Messages): Future[Appendable]

Refresh navigation data from the backend (or fall back to cache) and render the full page layout.

Refresh navigation data from the backend (or fall back to cache) and render the full page layout.

Attributes

def standardCatalogueLayoutWithMenu(menu: BannerMenu, content: Appendable, pageTitle: Option[String] = ..., activeItemId: Option[String] = ..., showSignOut: Boolean = ..., signOutUrl: Option[String] = ..., scripts: Seq[Appendable] = ..., stylesheets: Seq[Appendable] = ..., fullWidth: Boolean = ...)(implicit request: RequestHeader, messages: Messages): Appendable

Render the full page layout with an already-fetched menu (useful in tests or when menu is cached).

Render the full page layout with an already-fetched menu (useful in tests or when menu is cached).

Attributes