Differential D20358 Diff 48609 src/applications/search/menuitem/PhabricatorDividerProfileMenuItem.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/search/menuitem/PhabricatorDividerProfileMenuItem.php
Show All 28 Lines | return array( | ||||
->setValue( | ->setValue( | ||||
pht( | pht( | ||||
'This is a visual divider which you can use to separate '. | 'This is a visual divider which you can use to separate '. | ||||
'sections in the menu. It does not have any configurable '. | 'sections in the menu. It does not have any configurable '. | ||||
'options.')), | 'options.')), | ||||
); | ); | ||||
} | } | ||||
protected function newNavigationMenuItems( | protected function newMenuItemViewList( | ||||
PhabricatorProfileMenuItemConfiguration $config) { | PhabricatorProfileMenuItemConfiguration $config) { | ||||
$item = $this->newItem() | $item = $this->newItemView() | ||||
->setType(PHUIListItemView::TYPE_DIVIDER) | ->setIsDivider(true); | ||||
->addClass('phui-divider'); | |||||
return array( | return array( | ||||
$item, | $item, | ||||
); | ); | ||||
} | } | ||||
} | } |