extends |
HTMLPurifier_AttrTransform |
---|
Pre-transform that changes converts a boolean attribute to fixed CSS
Methods | ||||||||
---|---|---|---|---|---|---|---|---|
public
|
__construct(string $attr, string $css)
Parameters
|
# | ||||||
public
|
transform(array $attr, HTMLPurifier_Config $config, HTMLPurifier_Context $context): array
Abstract: makes changes to the attributes dependent on multiple values.
Abstract: makes changes to the attributes dependent on multiple values. Parameters
ReturnsProcessed attribute array. Implements |
# |
Methods inherited from HTMLPurifier_AttrTransform |
---|
prependCSS(), confiscateAttr() |
Properties | |||
---|---|---|---|
protected
|
|
$attr
Name of boolean attribute that is trigger.
Name of boolean attribute that is trigger. |
# |
protected
|
|
$css
CSS declarations to add to style, needs trailing semicolon.
CSS declarations to add to style, needs trailing semicolon. |
# |