You are here

function hook_modal_submit in Modal 4.0.x

Same name and namespace in other branches
  1. 4.1.x modal_page.api.php \hook_modal_submit()

Implements hook_modal_submit().

1 function implements hook_modal_submit()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

modal_page_modal_submit in ./modal_page.module
Implements hook_modal_submit().
1 invocation of hook_modal_submit()
ModalAjaxController::hookModalSubmit in src/Controller/ModalAjaxController.php

File

./modal_page.api.php, line 27
Hooks provided by the Modals.

Code

function hook_modal_submit($modal, $modal_state, $modal_id) {

  // Your AJAX here.
  \Drupal::logger('modal_page')
    ->notice('Modal Submit was triggered');
}