Returns a menu item type information. The type information is returned as array
with the following elements:
- references - a list of the item type reference options. The options are returned in the
["key"] => "title" format for options that don't have sub-options, and in the format
["key"] => ["title"=>"Option title", "items"=>[...]] for options that have sub-options. Optional,
required only if the menu item type requires references.
- nesting - Boolean value indicating whether the item type supports nested items. Optional,
false if omitted.
- dynamicItems - Boolean value indicating whether the item type could generate new menu items.
Optional, false if omitted.
- cmsPages - a list of CMS pages (objects of the Cms\Classes\Page class), if the item type requires a CMS page reference to
resolve the item URL.
public static getMenuTypeInfo ( string $type ) : array | ||
$type | string | Specifies the menu item type |
return | array | Returns an array |