public allowsChildNodeType ( |
||
$nodeType | ||
Результат | boolean | TRUE if the $nodeType is allowed as child node, FALSE otherwise. |
public function allowsChildNodeType(NodeType $nodeType)
{
$constraints = $this->getConfiguration('constraints.nodeTypes') ?: array();
return $this->isNodeTypeAllowedByConstraints($nodeType, $constraints);
}