Skip to content

Kirby 5.2.0

$licenseType->isValidCode()

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

$licenseType->isValidCode(string|null $code): bool

Parameters

Name Type Default
$code stringornull no default value

Return type

bool

This method modifies the existing $licensetype object it is applied to and returns it again.

Parent class

Kirby\Cms\LicenseType