API / Minn\Theme / HeadLinks

HeadLinks final readonly class

Minn\Theme\HeadLinks · public/minn/src/Minn/Theme/HeadLinks.php · 51 lines

The engine's own pieces of a page's head: its block stylesheet link, and for rest_output_link_wp_head the REST discovery link and the JSON alternate for the queried object; the site's feed links as feed_links prints them. Every theme's head prints them from the reference's wp_head hooks.

Constants and properties

privatereadonly Minn\Front\Permalinks $permalinks

Promoted from the constructor.

Public

new__construct(Minn\Front\Permalinks $permalinks)#
methodengineStylesheet(): string#

The link to the engine's own block stylesheet.

staticsiteFeeds(array $args): string#

The site's two feed links as feed_links prints them: the posts feed and the comments feed (each unless its feed_links_show_* filter says no), titled with the caller's separator and words, through feed_links_args.

$argsarray<string, mixed>
methodrestLink(): string#

No trailing newline: the reference prints the JSON alternate and the RSD link on the same physical line.

methodjsonAlternate(Minn\Front\Resolution $resolution): string#

The wp/v2 alternate link for the resolution.