/**
  * Returns the maximum depth of the possible parents of the menu link.
  *
  * @param string $id
  *   The menu link plugin ID or an empty value for a new link.
  *
  * @return int
  *   The depth related to the depth of the given menu link.
  */
 protected function getParentDepthLimit($id)
 {
     if ($id) {
         $limit = $this->menuLinkTree->maxDepth() - $this->menuLinkTree->getSubtreeHeight($id);
     } else {
         $limit = $this->menuLinkTree->maxDepth() - 1;
     }
     return $limit;
 }