public function EntityEmbedDialog::submitAndShowEmbed in Entity Embed 8
Submit and show embed step after submit.
Parameters
array $form: The form array.
\Drupal\Core\Form\FormStateInterface $form_state: The form state.
Return value
\Drupal\Core\Ajax\AjaxResponse The ajax response.
File
- src/
Form/ EntityEmbedDialog.php, line 777
Class
- EntityEmbedDialog
- Provides a form to embed entities by specifying data attributes.
Namespace
Drupal\entity_embed\FormCode
public function submitAndShowEmbed(array $form, FormStateInterface $form_state) {
return $this
->submitStep($form, $form_state, 'embed');
}