$page->template()
Returns the final template
Return type
Parent class
Example
This returns the actually used template, which may differ from the blueprint name of a content page (e.g. when no corresponding template exists for blueprint article
, and template default
is used instead). Use $page->intendedTemplate()
to return the template originally defined for a page.