public function SubformState::getValues in Markdown 8.2
Implements \Drupal\Core\Form\FormStateInterface::getValues()
Overrides FormStateValuesTrait::getValues
File
- src/
BcSupport/ SubformState.php, line 106
Class
- SubformState
- Stores information about the state of a subform.
Namespace
Drupal\markdown\BcSupportCode
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;
}