private function buildActionView(NuanceQueue $queue) { $viewer = $this->getViewer(); $id = $queue->getID(); $actions = id(new PhabricatorActionListView())->setObjectURI($queue->getURI())->setUser($viewer); $can_edit = PhabricatorPolicyFilter::hasCapability($viewer, $queue, PhabricatorPolicyCapability::CAN_EDIT); $actions->addAction(id(new PhabricatorActionView())->setName(pht('Edit Queue'))->setIcon('fa-pencil')->setHref($this->getApplicationURI("queue/edit/{$id}/"))->setDisabled(!$can_edit)->setWorkflow(!$can_edit)); return $actions; }