AddCssCommand
class AddCssCommand implements CommandInterface (View source)
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.
Properties
| protected string | $styles | A string that contains the styles to be added to the page. |
Methods
__construct(string $styles)
Constructs an AddCssCommand.
render()
Implements Drupal\Core\Ajax\CommandInterface:render().
Details
__construct(string $styles)
Constructs an AddCssCommand.