NoneKeyInput.php in Key 8
File
src/Plugin/KeyInput/NoneKeyInput.php
View source
<?php
namespace Drupal\key\Plugin\KeyInput;
use Drupal\Core\Form\FormStateInterface;
use Drupal\key\Plugin\KeyInputBase;
class NoneKeyInput extends KeyInputBase {
public function buildConfigurationForm(array $form, FormStateInterface $form_state) {
$form['key_value_message'] = [
'#markup' => $this
->t("The selected key provider does not accept a value. See the provider's description for instructions on how and where to store the key value."),
];
return $form;
}
public function processSubmittedKeyValue(FormStateInterface $form_state) {
return [
'submitted' => NULL,
'processed_submitted' => NULL,
];
}
public function processExistingKeyValue($key_value) {
return $key_value;
}
}
Classes
Name |
Description |
NoneKeyInput |
Defines a key input for providers that don't accept a value. |