Stone.js API
    Preparing search index...

    Variable resolveLayoutHeadConst

    resolveLayoutHead: (
        container: IContainer,
        layoutName?: unknown,
    ) => Promise<HeadContext | undefined>

    Resolve the head declared by a page's layout, if any.

    A layout may expose an optional head() returning a HeadContext (brand-level defaults: canonical social card, site name, theme color, …). It is resolved from the same stone.useReact.layouts.<name> entry the layout component comes from, so declarative and lazily code-split layouts are covered identically.

    Type Declaration

      • (container: IContainer, layoutName?: unknown): Promise<HeadContext | undefined>
      • Parameters

        • container: IContainer

          Service Container.

        • OptionallayoutName: unknown

          The layout name.

        Returns Promise<HeadContext | undefined>

        The layout head context, or undefined when the layout defines none.