Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / core / lib / Drupal / Core / Ajax / CommandInterface.php
1 <?php
2
3 namespace Drupal\Core\Ajax;
4
5 /**
6  * AJAX command interface.
7  *
8  * All AJAX commands passed to AjaxResponse objects should implement these
9  * methods.
10  *
11  * @ingroup ajax
12  */
13 interface CommandInterface {
14
15   /**
16    * Return an array to be run through json_encode and sent to the client.
17    */
18   public function render();
19
20 }