Provides an interface to the Pages class but specific to a given page class/type, with predefined parent and template.
This class is primarily used by the core as an alternative to $pages
, providing an API for other Page types like
User
, Role
, Permission
, and Language
. The $users
, $roles
, $permissions
and $languages
API variables are all instances of Pages
. This class is typically not instantiated on its own and instead acts as a base class
which is extended.
Click any linked item for full usage details and examples. Hookable methods are indicated with the icon. In addition to those shown below, the Pages
class also inherits all the methods and properties of: Wire.
Common
Family
For hooks
These methods are only useful for hooking and should not be called directly.
Name | Return | Summary | |
---|---|---|---|
Pages Pages Pages | (nothing) | Hook called when a new page of this type has been added | |
Pages Pages Pages | (nothing) | Hook called when a page is about to be deleted, but before data has been touched | |
Pages Pages Pages | (nothing) | Hook called when a page and its data have been deleted | |
Pages Pages Pages | array | Hook called just before a page of this type is saved | |
Pages Pages Pages | (nothing) | Hook called after a page of this type is successfully saved |
Additional methods and properties
In addition to the methods and properties above, Pages
API reference based on ProcessWire core version 3.0.236