API / Minn\Content / MenuItem

MenuItem final readonly class

Minn\Content\MenuItem · public/minn/src/Minn/Content/MenuItem.php · 22 lines

One classic nav_menu_item, fields resolved from the post, its `_menu_item_*` meta, and the object it points at.

Constants and properties

propreadonly int $id

Promoted from the constructor.

propreadonly string $title

Promoted from the constructor.

propreadonly string $url

Promoted from the constructor.

propreadonly string $type

Promoted from the constructor.

propreadonly string $object

Promoted from the constructor.

propreadonly int $objectId

Promoted from the constructor.

propreadonly int $parent

Promoted from the constructor.

propreadonly int $menuOrder

Promoted from the constructor.

propreadonly string $target

Promoted from the constructor.

propreadonly array $classes

Promoted from the constructor.

propreadonly array $xfn

Promoted from the constructor.

propreadonly string $attrTitle

Promoted from the constructor.

propreadonly string $description

Promoted from the constructor.

propreadonly string $status

Promoted from the constructor.

propreadonly int $menuId

Promoted from the constructor.

propreadonly bool $invalid

Promoted from the constructor.

Public

new__construct(int $id, string $title, string $url, string $type, string $object, int $objectId, int $parent, int $menuOrder, string $target, array $classes, array $xfn, string $attrTitle, string $description, string $status, int $menuId, bool $invalid)#