Reference

Data::read()

Reads data from a file The data handler is automatically chosen by the extension if not specified.

Data::read(string $file, string $type = null): array

Parameters

Name Type Default Description
$file string
$type string null

Return type

array

Source code

kirby/src/Data/Data.php#L108