Further refinement of the processMenuLinks function in the drupalNavbarmenu plugin