@Model(adaptables=org.apache.sling.api.SlingHttpServletRequest.class) public class SiteRootRelativePageLink extends Object
| Constructor and Description |
|---|
SiteRootRelativePageLink(io.wcm.handler.url.ui.SiteRoot siteRoot,
io.wcm.handler.link.LinkHandler linkHandler,
String relativePath,
String titleType) |
| Modifier and Type | Method and Description |
|---|---|
Map<String,String> |
getAttributes() |
io.wcm.handler.link.Link |
getMetadata() |
String |
getTitle() |
boolean |
isValid() |
@Inject
public SiteRootRelativePageLink(io.wcm.handler.url.ui.SiteRoot siteRoot,
io.wcm.handler.link.LinkHandler linkHandler,
String relativePath,
String titleType)
siteRoot - Site rootlinkHandler - Link handlerrelativePath - Relative path of page to link totitleType - Type of title to display: pageTitle or navigationTitleCopyright © 2014–2018 wcm.io. All rights reserved.