read_manifest()

protected function read_manifest(string $path): array|bool

Description

Reads a manifest.php file from the specified application-relative path and returns its contents as an array. If no manifest file exists at the given path, returns false.

Manifest files are used throughout Trongate to define metadata for sections of the reference guide and other structured content.

Parameters

Parameter Type Description Default Required
path string The application-relative path to the directory containing the manifest.php file. N/A Yes

Return Value

TypeDescription
array|boolThe manifest data as an array if found, or false if no manifest file exists.