You are here

protected function SubFormState::applySubKeys in Authorization 8

Applies the sub-form's array keys to the given original array.

Parameters

array $original: The original array, belonging to the main form.

Return value

array|null The corresponding array for the sub form, as a reference.

4 calls to SubFormState::applySubKeys()
SubFormState::getCompleteForm in src/Form/SubFormState.php
Returns a reference to the complete form array.
SubFormState::getUserInput in src/Form/SubFormState.php
Returns the form values as they were submitted by the user.
SubFormState::setCompleteForm in src/Form/SubFormState.php
Stores the complete form array.
SubFormState::__construct in src/Form/SubFormState.php
Constructs a SubFormState object.

File

src/Form/SubFormState.php, line 111

Class

SubFormState
Represents the form state of a sub-form.

Namespace

Drupal\authorization\Form

Code

protected function &applySubKeys(array &$original) : ?array {
  return NestedArray::getValue($original, $this->subKeys);
}