ToolbarMarkup final class
Minn\Front\ToolbarMarkup · public/minn/src/Minn/Front/ToolbarMarkup.php · 57 lines
WP_Admin_Bar's markup, piece by piece, as the reference prints it (probe admin-bar): the wrapper (a skip link until the page has opened its body, a class for phones), a group's list (named by the menu it opens from), and an item: a link or an empty div, its focus order, its attributes from meta, an arrow when it opens a menu below the top level, and any markup a plugin hangs after it.
Constants and properties
| private | ATTRIBUTES = array ( 0 => 'onclick', 1 => 'target', 2 => 'title', 3 => 'rel', 4 => 'lang', 5 => 'dir', ) | The meta keys an item carries onto its link or div, in the reference's order. |
Public
| static | open(): string# | The bar's wrapper up to its first group. |
| static | close(): string# | The bar's wrapper after its last group. |
| static | groupOpen(object $node, mixed $menuTitle): string# | A group's opening list tag, labelled by the menu it opens from when that has a menu title. |
| static | itemOpen(object $node): string# | An item up to its submenu: the list item, then its link (or a div when it has none) with its title. |
| static | itemClose(object $node): string# | An item after its submenu: any markup a plugin hangs on it, and the list item's end. |
Nothing matches.