Differential D10986 Diff 26396 src/applications/conduit/controller/PhabricatorConduitConsoleController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/conduit/controller/PhabricatorConduitConsoleController.php
| Show First 20 Lines • Show All 61 Lines • ▼ Show 20 Lines | if ($error_types) { | ||||
| $error_description = pht( | $error_description = pht( | ||||
| 'This method does not raise any specific errors.'); | 'This method does not raise any specific errors.'); | ||||
| } | } | ||||
| $form = new AphrontFormView(); | $form = new AphrontFormView(); | ||||
| $form | $form | ||||
| ->setUser($request->getUser()) | ->setUser($request->getUser()) | ||||
| ->setAction('/api/'.$this->method) | ->setAction('/api/'.$this->method) | ||||
| ->addHiddenInput('allowEmptyParams', 1) | |||||
| ->appendChild( | ->appendChild( | ||||
| id(new AphrontFormStaticControl()) | id(new AphrontFormStaticControl()) | ||||
| ->setLabel('Description') | ->setLabel('Description') | ||||
| ->setValue($method->getMethodDescription())) | ->setValue($method->getMethodDescription())) | ||||
| ->appendChild( | ->appendChild( | ||||
| id(new AphrontFormStaticControl()) | id(new AphrontFormStaticControl()) | ||||
| ->setLabel('Returns') | ->setLabel('Returns') | ||||
| ->setValue($method->defineReturnType())) | ->setValue($method->defineReturnType())) | ||||
| ▲ Show 20 Lines • Show All 64 Lines • Show Last 20 Lines | |||||