Homec4science

Allow `PhabricatorMenuView` to have items inserted in the middle

Authored by epriestley <git@epriestley.com> on Feb 3 2013, 19:02.

Description

Allow PhabricatorMenuView to have items inserted in the middle

Summary:
Make PhabricatorMenuView more flexible, so callers can add items to the beginning/end/middle.

In particular, this allows event handlers to receive a $menu and call addMenuItemToLabel('activity', ...) or similar, for D4708.

Test Plan: Unit tests. Browsed site. Home page, Conpherence, and other pages with menus look correct.

Reviewers: btrahan

Reviewed By: btrahan

CC: aran

Differential Revision: https://secure.phabricator.com/D4792

Details

Committed
epriestley <git@epriestley.com>Feb 3 2013, 19:02
Pushed
aubortJan 31 2017, 17:16
Parents
rPH57ff0a80aa1e: Return applications in application order
Branches
Unknown
Tags
Unknown

Event Timeline

epriestley <git@epriestley.com> committed rPH30dedb225142: Allow `PhabricatorMenuView` to have items inserted in the middle (authored by epriestley <git@epriestley.com>).Feb 3 2013, 19:02