You are here

class ResultsCommand in FullCalendar 8.2

Same name and namespace in other branches
  1. 8.5 src/Ajax/ResultsCommand.php \Drupal\fullcalendar\Ajax\ResultsCommand
  2. 8 src/Ajax/ResultsCommand.php \Drupal\fullcalendar\Ajax\ResultsCommand
  3. 8.3 src/Ajax/ResultsCommand.php \Drupal\fullcalendar\Ajax\ResultsCommand
  4. 8.4 src/Ajax/ResultsCommand.php \Drupal\fullcalendar\Ajax\ResultsCommand

Provides an AJAX command for showing the save and cancel buttons.

This command is implemented in Drupal.AjaxCommands.prototype.ResultsCommand.

Hierarchy

Expanded class hierarchy of ResultsCommand

1 file declares its use of ResultsCommand
ResultsController.php in src/Controller/ResultsController.php
1 string reference to 'ResultsCommand'
ResultsCommand::render in src/Ajax/ResultsCommand.php
Return an array to be run through json_encode and sent to the client.

File

src/Ajax/ResultsCommand.php, line 12

Namespace

Drupal\fullcalendar\Ajax
View source
class ResultsCommand implements CommandInterface {
  protected $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() {
    return [
      'command' => 'ResultsCommand',
      'data' => $this->data,
    ];
  }

}

Members

Namesort descending Modifiers Type Description Overrides
ResultsCommand::$data protected property
ResultsCommand::render public function Return an array to be run through json_encode and sent to the client. Overrides CommandInterface::render
ResultsCommand::__construct public function Constructs a \Drupal\views\Ajax\ReplaceTitleCommand object.