interface CommandWithAttachedAssetsInterface
Interface for Ajax commands that render content and attach assets.
All Ajax commands that render HTML should implement these methods to be able to return attached assets to the calling AjaxResponse object.
Hierarchy
- interface \Drupal\Core\Ajax\CommandWithAttachedAssetsInterface
Related topics
- Ajax API
- Overview for Drupal's Ajax API.
File
- core/lib/Drupal/Core/Ajax/CommandWithAttachedAssetsInterface.php, line 13
Namespace
Drupal\Core\AjaxMembers
Name | Modifiers | Type | Description |
---|---|---|---|
CommandWithAttachedAssetsInterface::getAttachedAssets | public | function | Gets the attached assets. |
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Ajax!CommandWithAttachedAssetsInterface.php/interface/CommandWithAttachedAssetsInterface/8.1.x