Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions modules/concepts/hooks/list-of-hooks/actionNotFound.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
Title: actionNotFound
hidden: true
hookTitle: 'Action when a page is not found'
files:
-
url: 'https://github.com/PrestaShop/PrestaShop/blob/9.2.x/controllers/front/PageNotFoundController.php'
file: controllers/front/PageNotFoundController.php
-
url: 'https://github.com/PrestaShop/PrestaShop/blob/9.2.x/controllers/front/ProductController.php'
file: controllers/front/ProductController.php
-
url: 'https://github.com/PrestaShop/PrestaShop/blob/9.2.x/controllers/front/listing/CategoryController.php'
file: controllers/front/listing/CategoryController.php
locations:
- 'front office'
type: action
hookAliases:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
hookAliases:

array_return: false
check_exceptions: false
chain: false
origin: core
description: 'Allows modules to react when a page is not found - log it, redirect or perform other actions.'

---

{{% hookDescriptor %}}

## Call of the Hook in the origin file

```php
Hook::exec('actionNotFound');
```
Loading