fullcalendar-8.x-2.x-dev/src/Ajax/ResultsCommand.php

src/Ajax/ResultsCommand.php
<?php

namespace Drupal\fullcalendar\Ajax;

use Drupal\Core\Ajax\CommandInterface;

/**
 * Provides an AJAX command for showing the save and cancel buttons.
 *
 * This command is implemented in Drupal.AjaxCommands.prototype.ResultsCommand.
 */
class ResultsCommand implements CommandInterface {

  /**
   * The form to display in the modal.
   *
   * @var string
   */
  protected string $data;

  /**
   * Constructs a \Drupal\views\Ajax\ReplaceTitleCommand object.
   *
   * @param string $data
   *   The form to display in the modal.
   */
  public function __construct($data) {
    $this->data = $data;
  }

  /**
   * {@inheritdoc}
   */
  public function render(): array {
    return [
      'command' => 'ResultsCommand',
      'data' => $this->data,
    ];
  }

}

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

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