You are here

public function NoneKeyInput::processSubmittedKeyValue in Key 8

Process a submitted key value.

Parameters

\Drupal\Core\Form\FormStateInterface $form_state: The form state.

Return value

array The submitted value (with index "submitted") and the processed value (with index "processed_submitted").

Overrides KeyInputBase::processSubmittedKeyValue

File

src/Plugin/KeyInput/NoneKeyInput.php, line 32

Class

NoneKeyInput
Defines a key input for providers that don't accept a value.

Namespace

Drupal\key\Plugin\KeyInput

Code

public function processSubmittedKeyValue(FormStateInterface $form_state) {
  return [
    'submitted' => NULL,
    'processed_submitted' => NULL,
  ];
}