public &SubformState::getValues()
Implements \Drupal\Core\Form\FormStateInterface::getValues()
Overrides FormStateValuesTrait::getValues
File
- core/lib/Drupal/Core/Form/SubformState.php, line 99
Class
- SubformState
- Stores information about the state of a subform.
Namespace
Drupal\Core\Form
Code
1 2 3 4 5 6 7 8 9 10 11 12 | public function &getValues() { $exists = NULL; $values = &NestedArray::getValue(parent::getValues(), $this ->getParents( '#parents' ), $exists ); if (! $exists ) { $values = []; } elseif (! is_array ( $values )) { throw new \UnexpectedValueException( 'The form state values do not belong to the subform.' ); } return $values ; } |
Please login to continue.