Skip to content

Kirby 4.5.0

$api->hasData()

Checks if injected data exists for the given key

$api->hasData(string $key): bool

Parameters

Name Type Default
$key * string

Return type

bool

Parent class

Kirby\Cms\Api inherited from Kirby\Api\Api