Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. CssCommand.php

function CssCommand::setProperty

Adds a property/value pair to the CSS to be added to this element.

Parameters

$property: The CSS property to be changed.

$value: The new value of the CSS property.

Return value

$this

File

core/lib/Drupal/Core/Ajax/CssCommand.php, line 60

Class

CssCommand
An AJAX command for calling the jQuery css() method.

Namespace

Drupal\Core\Ajax

Code

public function setProperty($property, $value) {
    $this->css[$property] = $value;
    return $this;
}
RSS feed
Powered by Drupal