Skip to content

Commit

Permalink
feat: Implement LinkingMode helper to match SiteTree API
Browse files Browse the repository at this point in the history
  • Loading branch information
wilr authored Feb 19, 2024
1 parent 09a192b commit f3421e5
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/MenuItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -298,4 +298,14 @@ public function getLinkTypes(): array

return $types;
}


public function getLinkingMode()
{
if ($this->PageID) {
return $this->Page()->LinkingMode();
} else {
return 'link';
}
}
}

0 comments on commit f3421e5

Please sign in to comment.