class AddCssCommand
An AJAX command for adding css to the page via ajax.
This command is implemented by Drupal.AjaxCommands.prototype.add_css() defined in misc/ajax.js.
Hierarchy
- class \Drupal\Core\Ajax\AddCssCommand implements CommandInterface
See also
misc/ajax.js
Related topics
- Ajax API
- Overview for Drupal's Ajax API.
File
- core/lib/Drupal/Core/Ajax/AddCssCommand.php, line 15
Namespace
Drupal\Core\AjaxMembers
Name | Modifiers | Type | Description |
---|---|---|---|
AddCssCommand::$styles | protected | property | A string that contains the styles to be added to the page. |
AddCssCommand::render | public | function | Implements Drupal\Core\Ajax\CommandInterface:render(). Overrides CommandInterface::render |
AddCssCommand::__construct | public | function | Constructs an AddCssCommand. |
© 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!AddCssCommand.php/class/AddCssCommand/8.1.x