Skip to content

Kirby 4.4.1

$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