Mercurial > hg > isophonics-drupal-site
comparison core/lib/Drupal/Core/Ajax/CommandWithAttachedAssetsInterface.php @ 0:4c8ae668cc8c
Initial import (non-working)
author | Chris Cannam |
---|---|
date | Wed, 29 Nov 2017 16:09:58 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:4c8ae668cc8c |
---|---|
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 } |