Drupal 8  8.0.2
AddCssCommand Class Reference
Inheritance diagram for AddCssCommand:

Public Member Functions

 __construct ($styles)
 render ()
- Public Member Functions inherited from CommandInterface
 render ()
 __construct ($selector)
 render ()

Protected Attributes

- Protected Attributes inherited from CommandInterface

Detailed Description

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.

See Also

Constructor & Destructor Documentation

__construct (   $styles)

Constructs an AddCssCommand.

string$stylesA string that contains the styles to be added to the page, including the wrapping <style> tag.

Member Function Documentation

render ( )

Implements Drupal:render().

Referenced by AjaxResponseAttachmentsProcessor\buildAttachmentsCommands().

Here is the caller graph for this function:

The documentation for this class was generated from the following file: