1 | <?php |
||
7 | trait Menu |
||
8 | { |
||
9 | /** |
||
10 | * Gets the menu id from the menu name. |
||
11 | * |
||
12 | * @param string $name The menu name. |
||
13 | * |
||
14 | * @return string The menu id. |
||
15 | */ |
||
16 | protected static function getMenuIdFromName($name) |
||
24 | |||
25 | /** |
||
26 | * Creates all of the configuration menus. |
||
27 | */ |
||
28 | public static function menuCreateAll() |
||
44 | |||
45 | /** |
||
46 | * Creates a menu. |
||
47 | * |
||
48 | * @param string $name The menu name. |
||
49 | */ |
||
50 | public static function menuCreate($name) |
||
54 | |||
55 | /** |
||
56 | * Assigns a menu to a location by menu id. |
||
57 | * |
||
58 | * @param string $menu_id The menu id to assign. |
||
59 | * @param string $location The menu location to assign. |
||
60 | */ |
||
61 | public static function menuLocationAssign($menu_id, $location) |
||
65 | } |
||
66 |