Skip to content

Kirby 4.4.1

$licensetype->isValidCode()

Checks for a valid license code by prefix and length. This is just a rough validation.

$licensetype->isValidCode(?string $code): bool

Parameters

Name Type Default
$code * string|null

Return type

bool

Parent class

Kirby\Cms\LicenseType