public function KeyTypeInterface::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.
4 methods override KeyTypeInterface::validateKeyValue()
- AuthenticationKeyType::validateKeyValue in src/
Plugin/ KeyType/ AuthenticationKeyType.php - Allows the Key Type plugin to validate the key value.
- AuthenticationMultivalueKeyType::validateKeyValue in src/
Plugin/ KeyType/ AuthenticationMultivalueKeyType.php - Allows the Key Type plugin to validate the key value.
- EncryptionKeyType::validateKeyValue in src/
Plugin/ KeyType/ EncryptionKeyType.php - Allows the Key Type plugin to validate the key value.
- MultiValueKeyType::validateKeyValue in tests/
modules/ key_test/ src/ Plugin/ KeyType/ MultiValueKeyType.php - Allows the Key Type plugin to validate the key value.
File
- src/
Plugin/ KeyTypeInterface.php, line 22
Class
- KeyTypeInterface
- Provides an interface for all Key Type plugins.
Namespace
Drupal\key\PluginCode
public function validateKeyValue(array $form, FormStateInterface $form_state, $key_value);