45 abstract public function validateChildren($tokens_of_children, $config, $context);
$allow_empty
Bool that indicates whether or not an empty array of children is okay.
Defines allowed child nodes and validates tokens against it.
validateChildren($tokens_of_children, $config, $context)
Validates nodes according to definition and returns modification.
$elements
Lookup array of all elements that this definition could possibly allow.
getAllowedElements($config)
Get lookup of tag names that should not close this element automatically.
$type
Type of child definition, usually right-most part of class name lowercase.