You are here

public static function ParagraphsPreviewerWidgetTrait::submitPreviewerItem in Paragraphs Previewer 8

Previewer button submit callback.

Parameters

array $form: The form array.

\Drupal\Core\Form\FormStateInterface $form_state: The form state.

File

src/Plugin/Field/FieldWidget/ParagraphsPreviewerWidgetTrait.php, line 139

Class

ParagraphsPreviewerWidgetTrait
Paragraphs previewer trait to support multiple paragraphs widgets.

Namespace

Drupal\paragraphs_previewer\Plugin\Field\FieldWidget

Code

public static function submitPreviewerItem(array $form, FormStateInterface $form_state) {
  $form_state
    ->setRebuild();
}