getName()); } protected function getObjectEditShortText($object) { return pht('Edit Network'); } protected function getObjectCreateShortText() { return pht('Create Network'); } protected function getObjectName() { return pht('Network'); } protected function getEditorURI() { return '/almanac/network/edit/'; } protected function getObjectCreateCancelURI($object) { return '/almanac/network/'; } protected function getObjectViewURI($object) { $id = $object->getID(); return "/almanac/network/{$id}/"; } protected function getCreateNewObjectPolicy() { return $this->getApplication()->getPolicy( AlmanacCreateNetworksCapability::CAPABILITY); } protected function buildCustomEditFields($object) { return array( id(new PhabricatorTextEditField()) ->setKey('name') ->setLabel(pht('Name')) ->setDescription(pht('Name of the network.')) ->setTransactionType(AlmanacNetworkTransaction::TYPE_NAME) ->setIsRequired(true) ->setValue($object->getName()), ); } }