Start typing to see suggestions. Use arrow keys to navigate, Enter to select.

getFontJson()

Kirby page method

Generate JSON metadata script tag for font files

Parameters

Name Type Description
$fontFiles Files|null Collection of font files
Returns:
string|null — HTML script tag with JSON metadata or null if no fonts

Usage

This method is available on all $page objects:

$page->getFontJson($fontFiles);

Source: /methods/pages/getFontJson.php

Jump to