It is often useful to know how Grav processes in order to fully understand how best to extend Grav via plugins. This is the Grav lifecycle:
load()gravdebuggerlog handlererror handleruritaskeventscachesessionpluginsthemestwigtaxonomylanguagepagesassetspageoutputbrowserbase_url_absolutebase_url_relativebase_urlstream handlerconfig handlerGrav::process()
pluginsassetstwig
pages
buildPages()recurse()recurse().md file is found:
folder found recurse() the childrenbuildRoutes()taxonomy for all pagesroute table for fast lookupprocessSite() method
render() methodWhenever a page has its content() method called, the following lifecycle occurs:
Found errors? Think you can improve this documentation? Simply click the Edit link at the top of the page, and then the icon on Github to make your changes.
Powered by Grav + with by Trilby Media.