Back to NodeInterface class

Method addChild

public void
addChild
(\Joomla\CMS\Tree\NodeInterface $child)
Add child to this node
Parameters
  • \Joomla\CMS\Tree\NodeInterface $child The child to be added.
Returns
  • void
Since
  • 4.0.0
Class: NodeInterface
Project: Joomla

Method addChild - Source code

/**
 * Add child to this node
 *
 * If the child already has a parent, the link is unset
 *
 * @param   NodeInterface  $child  The child to be added.
 *
 * @return  void
 *
 * @since   4.0.0
 */
public function addChild(NodeInterface $child);