geysir-8.x-1.2/src/Ajax/GeysirCloseModalDialogCommand.php

src/Ajax/GeysirCloseModalDialogCommand.php
<?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;
  }

}

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc