Changeset View
Changeset View
Standalone View
Standalone View
src/view/form/control/AphrontFormTokenizerControl.php
| Show First 20 Lines • Show All 58 Lines • ▼ Show 20 Lines | protected function renderInput() { | ||||
| if (!$this->disableBehavior) { | if (!$this->disableBehavior) { | ||||
| Javelin::initBehavior('aphront-basic-tokenizer', array( | Javelin::initBehavior('aphront-basic-tokenizer', array( | ||||
| 'id' => $id, | 'id' => $id, | ||||
| 'src' => $this->datasource, | 'src' => $this->datasource, | ||||
| 'value' => mpull($values, 'getFullName', 'getPHID'), | 'value' => mpull($values, 'getFullName', 'getPHID'), | ||||
| 'icons' => mpull($values, 'getTypeIcon', 'getPHID'), | 'icons' => mpull($values, 'getTypeIcon', 'getPHID'), | ||||
| 'limit' => $this->limit, | 'limit' => $this->limit, | ||||
| 'ondemand' => PhabricatorEnv::getEnvConfig('tokenizer.ondemand'), | |||||
| 'username' => $username, | 'username' => $username, | ||||
| 'placeholder' => $this->placeholder, | 'placeholder' => $this->placeholder, | ||||
| )); | )); | ||||
| } | } | ||||
| return $template->render(); | return $template->render(); | ||||
| } | } | ||||
| Show All 32 Lines | |||||