36 $token = $context->get(
'CurrentToken',
true);
37 if ($token && $token->name == $this->element) {
40 return $this->def->validate($string,
$config, $context);
Base class for all validating attribute definitions.
__construct($def, $element)
Decorator which enables CSS properties to be disabled for specific elements.
validate($string, $config, $context)
Checks if CurrentToken is set and equal to $this->element.