API / Minn\Http / Subject

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.

Uses 1

Cases

casePost

A post of the type the {base} capture names (posts, pages, blocks, media, navigation, menu-items); a post when there is none.

casePostParent

The same lookup, refused as an invalid parent (revisions and autosaves).

caseAttachment
caseBlock
caseNavigation
caseMenuItem
caseGlobalStyles
caseGlobalStylesParent

A global styles post, refused as an invalid parent (its revisions).

caseTerm

A term of the taxonomy the {base} capture names (categories, tags, wp_pattern_category).

caseMenu
caseUser

A user by id, or "me" for the caller, who must then be signed in.

caseComment

Public

methodmissingCode(): string#

The reference's error code for a record that does not exist.

methodmissingMessage(): string#

The reference's message for a record that does not exist.