Package org.apache.sling.cms
Interface PageTemplateManager
@ProviderType
public interface PageTemplateManager
An interface for retrieving the available templates to create a page under
the specified resource. Adaptable from any Resource.
-
Method Summary
Modifier and TypeMethodDescription@NotNull List<PageTemplate>Gets the available templates for the current resource based on the templates in the repository and then limiting the templates by their allowed path
-
Method Details
-
getAvailableTemplates
Gets the available templates for the current resource based on the templates in the repository and then limiting the templates by their allowed path- Returns:
- the list of available templates
-