public function AuthenticationKeyType::validateKeyValue in Key 8
Allows the Key Type plugin to validate the key value.
Parameters
array $form: An associative array containing the structure of the plugin form.
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the plugin form.
string|null $key_value: The key value to be validated.
Overrides KeyTypeInterface::validateKeyValue
File
- src/
Plugin/ KeyType/ AuthenticationKeyType.php, line 34
Class
- AuthenticationKeyType
- Defines a generic key type for authentication.
Namespace
Drupal\key\Plugin\KeyTypeCode
public function validateKeyValue(array $form, FormStateInterface $form_state, $key_value) {
// Validation of the key value is optional.
}