mirror of
https://github.com/processwire/processwire.git
synced 2025-08-12 17:54:44 +02:00
Add clarification to ProcessPageView::pageNotFound hook per processwire/processwire-issues#1410
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user