Changeset View
Changeset View
Standalone View
Standalone View
src/applications/files/editor/PhabricatorFileEditEngine.php
Show First 20 Lines • Show All 69 Lines • ▼ Show 20 Lines | return array( | ||||
id(new PhabricatorTextEditField()) | id(new PhabricatorTextEditField()) | ||||
->setKey('name') | ->setKey('name') | ||||
->setLabel(pht('Name')) | ->setLabel(pht('Name')) | ||||
->setTransactionType(PhabricatorFileNameTransaction::TRANSACTIONTYPE) | ->setTransactionType(PhabricatorFileNameTransaction::TRANSACTIONTYPE) | ||||
->setDescription(pht('The name of the file.')) | ->setDescription(pht('The name of the file.')) | ||||
->setConduitDescription(pht('Rename the file.')) | ->setConduitDescription(pht('Rename the file.')) | ||||
->setConduitTypeDescription(pht('New file name.')) | ->setConduitTypeDescription(pht('New file name.')) | ||||
->setValue($object->getName()), | ->setValue($object->getName()), | ||||
id(new PhabricatorTextEditField()) | |||||
->setKey('alt') | |||||
->setLabel(pht('Alt Text')) | |||||
->setTransactionType(PhabricatorFileAltTextTransaction::TRANSACTIONTYPE) | |||||
->setDescription(pht('Human-readable file description.')) | |||||
->setConduitDescription(pht('Set the file alt text.')) | |||||
->setConduitTypeDescription(pht('New alt text.')) | |||||
->setValue($object->getCustomAltText()), | |||||
); | ); | ||||
} | } | ||||
} | } |