public static function FieldWrapperBase::rebuildSubmit in (Entity Reference) Field Formatters 8
Rebuilds the form on select submit.
Parameters
array $form: The form.
\Drupal\Core\Form\FormStateInterface $form_state: The form state.
File
- src/
Plugin/ Field/ FieldFormatter/ FieldWrapperBase.php, line 186
Class
- FieldWrapperBase
- Wraps an existing field.
Namespace
Drupal\field_formatter\Plugin\Field\FieldFormatterCode
public static function rebuildSubmit(array $form, FormStateInterface $form_state) {
$form_state
->setRebuild(TRUE);
}