Changeset View
Changeset View
Standalone View
Standalone View
src/applications/search/menuitem/PhabricatorLabelProfileMenuItem.php
Show All 33 Lines | public function buildEditEngineFields( | ||||
); | ); | ||||
} | } | ||||
private function getLabelName( | private function getLabelName( | ||||
PhabricatorProfileMenuItemConfiguration $config) { | PhabricatorProfileMenuItemConfiguration $config) { | ||||
return $config->getMenuItemProperty('name'); | return $config->getMenuItemProperty('name'); | ||||
} | } | ||||
protected function newNavigationMenuItems( | protected function newMenuItemViewList( | ||||
PhabricatorProfileMenuItemConfiguration $config) { | PhabricatorProfileMenuItemConfiguration $config) { | ||||
$name = $this->getLabelName($config); | $name = $this->getLabelName($config); | ||||
$item = $this->newItem() | $item = $this->newItemView() | ||||
->setName($name) | ->setName($name) | ||||
->setType(PHUIListItemView::TYPE_LABEL); | ->setIsLabel(true); | ||||
return array( | return array( | ||||
$item, | $item, | ||||
); | ); | ||||
} | } | ||||
public function validateTransactions( | public function validateTransactions( | ||||
PhabricatorProfileMenuItemConfiguration $config, | PhabricatorProfileMenuItemConfiguration $config, | ||||
Show All 18 Lines |