3 namespace Drupal\Core\Ajax;
6 * Interface for Ajax commands that render content and attach assets.
8 * All Ajax commands that render HTML should implement these methods
9 * to be able to return attached assets to the calling AjaxResponse object.
13 interface CommandWithAttachedAssetsInterface {
16 * Gets the attached assets.
18 * @return \Drupal\Core\Asset\AttachedAssets|null
19 * The attached assets for this command.
21 public function getAttachedAssets();