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

 $styles
 
- Protected Attributes inherited from CommandInterface
 $selector
 

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
misc/ajax.js

Constructor & Destructor Documentation

__construct (   $styles)

Constructs an AddCssCommand.

Parameters
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: