function WidgetBase::getWidgetState
Same name in other branches
- 8.9.x core/lib/Drupal/Core/Field/WidgetBase.php \Drupal\Core\Field\WidgetBase::getWidgetState()
- 10 core/lib/Drupal/Core/Field/WidgetBase.php \Drupal\Core\Field\WidgetBase::getWidgetState()
- 11.x core/lib/Drupal/Core/Field/WidgetBase.php \Drupal\Core\Field\WidgetBase::getWidgetState()
Overrides WidgetBaseInterface::getWidgetState
12 calls to WidgetBase::getWidgetState()
- FileWidget::extractFormValues in core/
modules/ file/ src/ Plugin/ Field/ FieldWidget/ FileWidget.php - Extracts field values from submitted form values.
- FileWidget::formMultipleElements in core/
modules/ file/ src/ Plugin/ Field/ FieldWidget/ FileWidget.php - Overrides \Drupal\Core\Field\WidgetBase::formMultipleElements().
- FileWidget::submit in core/
modules/ file/ src/ Plugin/ Field/ FieldWidget/ FileWidget.php - Form submission handler for upload/remove button of formElement().
- MediaLibraryWidget::extractFormValues in core/
modules/ media_library/ src/ Plugin/ Field/ FieldWidget/ MediaLibraryWidget.php - Extracts field values from submitted form values.
- MediaLibraryWidget::form in core/
modules/ media_library/ src/ Plugin/ Field/ FieldWidget/ MediaLibraryWidget.php - Creates a form element for a field.
File
-
core/
lib/ Drupal/ Core/ Field/ WidgetBase.php, line 495
Class
- WidgetBase
- Base class for 'Field widget' plugin implementations.
Namespace
Drupal\Core\FieldCode
public static function getWidgetState(array $parents, $field_name, FormStateInterface $form_state) {
return NestedArray::getValue($form_state->getStorage(), static::getWidgetStateParents($parents, $field_name));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.