function CommandWithAttachedAssetsTrait::getAttachedAssets
Same name in other branches
- 8.9.x core/lib/Drupal/Core/Ajax/CommandWithAttachedAssetsTrait.php \Drupal\Core\Ajax\CommandWithAttachedAssetsTrait::getAttachedAssets()
- 10 core/lib/Drupal/Core/Ajax/CommandWithAttachedAssetsTrait.php \Drupal\Core\Ajax\CommandWithAttachedAssetsTrait::getAttachedAssets()
- 11.x core/lib/Drupal/Core/Ajax/CommandWithAttachedAssetsTrait.php \Drupal\Core\Ajax\CommandWithAttachedAssetsTrait::getAttachedAssets()
Gets the attached assets.
Return value
\Drupal\Core\Asset\AttachedAssets|null The attached assets for this command.
File
-
core/
lib/ Drupal/ Core/ Ajax/ CommandWithAttachedAssetsTrait.php, line 51
Class
- CommandWithAttachedAssetsTrait
- Trait for Ajax commands that render content and attach assets.
Namespace
Drupal\Core\AjaxCode
public function getAttachedAssets() {
return $this->attachedAssets;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.