1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-12 09:44:38 +02:00

Add clarification to ProcessPageView::pageNotFound hook per processwire/processwire-issues#1410

This commit is contained in:
Ryan Cramer
2021-07-23 11:06:14 -04:00
parent fbdf4257ce
commit af0789ce4f

View File

@@ -1193,7 +1193,8 @@ class ProcessPageView extends Process {
/**
* Called when a page is not found, sends 404 header, and displays the configured 404 page instead.
*
* Method is hookable, for instance if you wanted to log 404s.
* Method is hookable, for instance if you wanted to log 404s. When hooking this method note that it
* must be hooked sometime before the ready state.
*
* @param Page|null $page Page that was found if applicable (like if user didn't have permission or $page's template threw the 404). If not applicable then NULL will be given instead.
* @param string $url The URL that the request originated from (like $_SERVER['REQUEST_URI'] but already sanitized)