mirror of
https://github.com/processwire/processwire.git
synced 2025-08-12 01:34:31 +02:00
Add clarification to ProcessPageView::pageNotFound hook per processwire/processwire-issues#1410
This commit is contained in:
@@ -1193,8 +1193,9 @@ 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)
|
||||
* @param bool $triggerReady Whether or not the ready() hook should be triggered (default=false)
|
||||
|
Reference in New Issue
Block a user