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\Ajax
Members
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. |
Please login to continue.