public function 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\AjaxCode
public function setProperty($property, $value) { $this->css[$property] = $value; return $this; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Ajax!CssCommand.php/function/CssCommand::setProperty/8.1.x