Skip to content

Allow to find descendents at a certain depth. #23

@simesy

Description

@simesy

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) {

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions