Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / lib / Drupal / Core / Ajax / CommandWithAttachedAssetsInterface.php
1 <?php
2
3 namespace Drupal\Core\Ajax;
4
5 /**
6  * Interface for Ajax commands that render content and attach assets.
7  *
8  * All Ajax commands that render HTML should implement these methods
9  * to be able to return attached assets to the calling AjaxResponse object.
10  *
11  * @ingroup ajax
12  */
13 interface CommandWithAttachedAssetsInterface {
14
15   /**
16    * Gets the attached assets.
17    *
18    * @return \Drupal\Core\Asset\AttachedAssets|null
19    *   The attached assets for this command.
20    */
21   public function getAttachedAssets();
22
23 }