Add the "getPageLayout" hook (see #4736)