CssCommand::setProperty

public CssCommand::setProperty($property, $value)

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

1
2
3
4
public function setProperty($property, $value) {
  $this->css[$property] = $value;
  return $this;
}
doc_Drupal
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.