Back to ImmutableNodeInterface class

Method getChildren

public \Joomla\CMS\Tree\NodeInterface[]
getChildren
(mixed $recursive = false)
Get the children of this node
Parameters
  • bool $recursive False by default
Returns
  • \Joomla\CMS\Tree\NodeInterface[] The children
Since
  • 4.0.0

Method getChildren - Source code

/**
 * Get the children of this node
 *
 * @param   boolean  $recursive  False by default
 *
 * @return  NodeInterface[]  The children
 *
 * @since   4.0.0
 */
public function &getChildren($recursive = false);