You are here

GeysirCloseModalDialogCommand.php in Geysir 8

Namespace

Drupal\geysir\Ajax

File

src/Ajax/GeysirCloseModalDialogCommand.php
View source
<?php

namespace Drupal\geysir\Ajax;

use Drupal\Core\Ajax\CloseDialogCommand;

/**
 * Defines an AJAX command that closes the currently visible Geysir modal.
 *
 * @ingroup ajax
 */
class GeysirCloseModalDialogCommand extends CloseDialogCommand {

  /**
   * Constructs a GeysirCloseModalDialogCommand object.
   *
   * @param bool $persist
   *   (optional) Whether to persist the dialog in the DOM or not.
   */
  public function __construct($persist = FALSE) {
    $this->selector = GeysirOpenModalDialogCommand::MODAL_SELECTOR;
    $this->persist = $persist;
  }

}

Classes

Namesort descending Description
GeysirCloseModalDialogCommand Defines an AJAX command that closes the currently visible Geysir modal.