Subject enum
Minn\Http\Subject · public/minn/src/Minn/Http/Subject.php · 46 lines
The record a route capture names, so a policy can have it looked up before the caller is judged: the reference answers "no such post" ahead of "you may not", and the 404 it sends is the record's own. A kind that reads its post type or taxonomy from the {base} capture says so.
Cases
| case | Post | A post of the type the {base} capture names (posts, pages, blocks, media, navigation, menu-items); a post when there is none. |
| case | PostParent | The same lookup, refused as an invalid parent (revisions and autosaves). |
| case | Attachment | |
| case | Block | |
| case | Navigation | |
| case | MenuItem | |
| case | GlobalStyles | |
| case | GlobalStylesParent | A global styles post, refused as an invalid parent (its revisions). |
| case | Term | A term of the taxonomy the {base} capture names (categories, tags, wp_pattern_category). |
| case | Menu | |
| case | User | A user by id, or "me" for the caller, who must then be signed in. |
| case | Comment |
Public
Nothing matches.