You are here

public function PropertyAdminDigitBase::validateFormat in ThemeKey 8

Validates if a value's format matches a ThemeKey property.

Return value

bool

Overrides PropertyAdminInterface::validateFormat

File

src/PropertyAdminDigitBase.php, line 17
Provides Drupal\themekey\PropertyBase.

Class

PropertyAdminDigitBase

Namespace

Drupal\themekey

Code

public function validateFormat($value) {
  return ctype_digit($value);
}