You are here

function hook_modal_alter in Modal 4.1.x

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

Implements hook_modal_alter().

1 invocation of hook_modal_alter()
ModalPageService::loadModalsToShow in src/Service/ModalPageService.php
Get modal to show.

File

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

Code

function hook_modal_alter(&$modal, $modal_id) {
  $modal
    ->setLabel('New Title');
  $modal
    ->setBody('New Body');
}