Changeset View
Changeset View
Standalone View
Standalone View
src/applications/badges/editor/PhabricatorBadgesEditEngine.php
Show First 20 Lines • Show All 86 Lines • ▼ Show 20 Lines | return array( | ||||
->setDescription(pht('Badge name.')) | ->setDescription(pht('Badge name.')) | ||||
->setConduitTypeDescription(pht('New badge name.')) | ->setConduitTypeDescription(pht('New badge name.')) | ||||
->setTransactionType( | ->setTransactionType( | ||||
PhabricatorBadgesBadgeNameTransaction::TRANSACTIONTYPE) | PhabricatorBadgesBadgeNameTransaction::TRANSACTIONTYPE) | ||||
->setValue($object->getName()) | ->setValue($object->getName()) | ||||
->setIsRequired(true), | ->setIsRequired(true), | ||||
id(new PhabricatorTextEditField()) | id(new PhabricatorTextEditField()) | ||||
->setKey('flavor') | ->setKey('flavor') | ||||
->setLabel(pht('Flavor text')) | ->setLabel(pht('Flavor Text')) | ||||
->setDescription(pht('Short description of the badge.')) | ->setDescription(pht('Short description of the badge.')) | ||||
->setConduitTypeDescription(pht('New badge flavor.')) | ->setConduitTypeDescription(pht('New badge flavor.')) | ||||
->setValue($object->getFlavor()) | ->setValue($object->getFlavor()) | ||||
->setTransactionType( | ->setTransactionType( | ||||
PhabricatorBadgesBadgeFlavorTransaction::TRANSACTIONTYPE), | PhabricatorBadgesBadgeFlavorTransaction::TRANSACTIONTYPE), | ||||
id(new PhabricatorIconSetEditField()) | id(new PhabricatorIconSetEditField()) | ||||
->setKey('icon') | ->setKey('icon') | ||||
->setLabel(pht('Icon')) | ->setLabel(pht('Icon')) | ||||
Show All 27 Lines |