This module validates Turkish National ID numbers (T.C. Kimlik No). It allows you to add this validation as a field to content types, users, or taxonomy terms, integrate it into custom forms, and programmatically validate T.C. Kimlik No using its provided service.
T.C. Kimlik No (Turkey)
This module provides functionality to validate T.C. Kimlik No. You can add custom field for content type, user and taxonomy just like any other field also can be added to any form via form api and you can validate any T.C kimlik no programmatically using provided service by this module.
Usage
1. Add as a field to content types, user or taxonomy terms
2. Usage in custom form
$form['message'] = [
'#type' => 'tckk',
'#title' => $this->t('T.C.'),
'#required' => TRUE,
];3. Validate T.C. anywhere in the project.
$tckimlik = '9999999';
if (\Drupal::service('tckk_field.validator')->validate($tcKimlik)) {
// is valid
} else {
// is not valid
}
Ask your assistant about T.C. Kimlik Kontrol
Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works
Depends on
Dependencies of the latest stable release
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.