CacheableSiteTree::removeChild
"Removes" an item from the Children array, but by default not using PHP's unset() function becuase this will cause PHP to reset its internal array pointer and we need to maintain array state. Use the $force param to unset.
Signature
public function removeChild(int
$childID,
[boolean
$force = true] )
Parameters
$childID
— int$force
— boolean- Invoke PHP's unset() function on the selected item.
Returns
- void