Checks whether an item is the ancestor of a current item.
public isAncestor ( Knp\Menu\ItemInterface $item, integer $depth = null ) : boolean | ||
$item | Knp\Menu\ItemInterface | |
$depth | integer | The max depth to look for the item |
return | boolean |