protected function buildApplicationCrumbs() { $crumbs = parent::buildApplicationCrumbs(); $engine_key = $this->getEngineKey(); $edit_uri = "/transactions/editengine/{$engine_key}/edit/"; $crumbs->addAction(id(new PHUIListItemView())->setName(pht('New Form'))->setHref($edit_uri)->setIcon('fa-plus-square')); return $crumbs; }
protected function buildApplicationCrumbs() { $viewer = $this->getViewer(); $crumbs = parent::buildApplicationCrumbs(); $target_key = $this->getEngineKey(); $target_engine = PhabricatorEditEngine::getByKey($viewer, $target_key); id(new PhabricatorEditEngineConfigurationEditEngine())->setTargetEngine($target_engine)->setViewer($viewer)->addActionToCrumbs($crumbs); return $crumbs; }