Package io.wcm.wcm.ui.granite.util
Interface RootPathDetector
-
@ConsumerType public interface RootPathDetector
Interface that can be implemented to provide custom logic to detect a root path from current context if there was no explicit root path configured for the GraniteUI component.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @Nullable java.lang.String
detectRootPath(@NotNull com.adobe.granite.ui.components.ComponentHelper cmp, @NotNull org.apache.sling.api.SlingHttpServletRequest request)
Detect root path from context of GraniteUI component.
-
-
-
Method Detail
-
detectRootPath
@Nullable @Nullable java.lang.String detectRootPath(@NotNull @NotNull com.adobe.granite.ui.components.ComponentHelper cmp, @NotNull @NotNull org.apache.sling.api.SlingHttpServletRequest request)
Detect root path from context of GraniteUI component.- Parameters:
cmp
- Granite UI Component Helperrequest
- Request- Returns:
- Root path or null
-
-