You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently findDescendents() searches down to a bottom depth, and I'd also like to be able to pass a top depth.
This is not critical functionality for me, but I think it would be a nice feature. I'm about to do a patch on the drupal module that would use this feature if it was available.
My proposal i don't think would break any existing functionality. But I could also create a new method findDescendentsAtDepth
public function findDescendants(NodeKey $nodeKey, $depth = 0) {
becomes
public function findDescendants(NodeKey $nodeKey, $end_depth = 0, $start_depth = 0) {
The text was updated successfully, but these errors were encountered:
Currently findDescendents() searches down to a bottom depth, and I'd also like to be able to pass a top depth.
This is not critical functionality for me, but I think it would be a nice feature. I'm about to do a patch on the drupal module that would use this feature if it was available.
My proposal i don't think would break any existing functionality. But I could also create a new method
findDescendentsAtDepth
becomes
The text was updated successfully, but these errors were encountered: