You are here

public function MultiValueKeyType::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

tests/modules/key_test/src/Plugin/KeyType/MultiValueKeyType.php, line 40

Class

MultiValueKeyType
Defines a key type that is multi-value.

Namespace

Drupal\key_test\Plugin\KeyType

Code

public function validateKeyValue(array $form, FormStateInterface $form_state, $key_value) {
}