public static WidgetBase::getWidgetState(array $parents, $field_name, FormStateInterface $form_state)
Retrieves processing information about the widget from $form_state.
This method is static so that it can be used in static Form API callbacks.
array $parents: The array of #parents where the field lives in the form.
string $field_name: The field name.
\Drupal\Core\Form\FormStateInterface $form_state: The form state.
array An array with the following key/value pairs:
Overrides WidgetBaseInterface::getWidgetState
public static function getWidgetState(array $parents, $field_name, FormStateInterface $form_state) { return NestedArray::getValue($form_state->getStorage(), static::getWidgetStateParents($parents, $field_name)); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Field!WidgetBase.php/function/WidgetBase::getWidgetState/8.1.x