protected function buildApplicationCrumbs() { $crumbs = parent::buildApplicationCrumbs(); $can_create = $this->hasApplicationCapability(AlmanacCreateServicesCapability::CAPABILITY); $crumbs->addAction(id(new PHUIListItemView())->setName(pht('Create Service'))->setHref($this->getApplicationURI('service/edit/'))->setIcon('fa-plus-square')->setDisabled(!$can_create)->setWorkflow(!$can_create)); return $crumbs; }
protected function buildApplicationCrumbs() { $crumbs = parent::buildApplicationCrumbs(); id(new AlmanacServiceEditEngine())->setViewer($this->getViewer())->addActionToCrumbs($crumbs); return $crumbs; }