API / Minn\Runtime / FileHeaders

FileHeaders final class

Minn\Runtime\FileHeaders · public/minn/src/Minn/Runtime/FileHeaders.php · 30 lines

The headers at the top of a theme, plugin or translation file, as WordPress's get_file_data reads them: the first eight kilobytes, each header by its label (the extra ones extra_{context}_headers adds first).

Uses 1

Public

staticread(mixed $file, mixed $defaultHeaders, mixed $context = ''): array#

A file's headers by field (get_file_data), empty for a header it does not carry.

@return array<string, string>