public static function ParagraphsSets::setWidgetState in Paragraphs Sets 8.2
Stores processing information about the widget in $form_state.
This method is static so that it can be used in static Form API #callbacks.
Parameters
array $parents: The array of #parents where the widget lives in the form.
string $field_name: The field name.
\Drupal\Core\Form\FormStateInterface $form_state: The form state.
array $field_state: The array of data to store. See getWidgetState() for the structure and content of the array.
2 calls to ParagraphsSets::setWidgetState()
File
- src/
ParagraphsSets.php, line 205
Class
- ParagraphsSets
- Utitlity class for paragraphs_sets.
Namespace
Drupal\paragraphs_setsCode
public static function setWidgetState(array $parents, $field_name, FormStateInterface $form_state, array $field_state) {
NestedArray::setValue($form_state
->getStorage(), static::getWidgetStateParents($parents, $field_name), $field_state);
}