Add an item to the menu array.
public addArray ( array $item ) : integer | ||
$item | array | The item to add. Valid keys:
'class' - (string) CSS classname. 'icon' - (string) Filename of the image icon. 'icon_path' - (string) Non-default directory path for icon. 'onclick' - (string) Onclick javascript. 'target' - (string) HREF target parameter. 'text' - (string) Label. 'url' - (string) Hyperlink. |
return | integer | The id (NOT guaranteed to be an array index) of the item just added to the menu. |