W3cubDocs

/Drupal 8

trait CommandWithAttachedAssetsTrait

Trait for Ajax commands that render content and attach assets.

Hierarchy

Related topics

Ajax API
Overview for Drupal's Ajax API.

File

core/lib/Drupal/Core/Ajax/CommandWithAttachedAssetsTrait.php, line 12

Namespace

Drupal\Core\Ajax

Members

Name Modifiers Type Description
CommandWithAttachedAssetsTrait::$attachedAssets protected property The attached assets for this Ajax command.
CommandWithAttachedAssetsTrait::getAttachedAssets public function Gets the attached assets. Overrides CommandWithAttachedAssetsInterface::getAttachedAssets
CommandWithAttachedAssetsTrait::getRenderedContent protected function Processes the content for output.

© 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!CommandWithAttachedAssetsTrait.php/trait/CommandWithAttachedAssetsTrait/8.1.x