loadPageDetails
This hook is executed whenever the details of a page are loaded via \Contao\PageModel::loadDetails. This hook allows
you to add additional details to the \Contao\PageModel instance. This in turn allows you to inherit custom variables,
or make settings of the root page available through a custom variable (see example below).
Parameters
array
$parentModelsAn array containing all the parent pages of the processed page.
\Contao\PageModel
$pageThe processed page for which the details are added.