mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-15 03:12:41 +01:00
f24318f308
Summary: Ref T10054. This does a big chunk of the legwork to let users reconfigure profile menus (currently, just project menus). This includes: - Editing builtin items (e.g., you can rename the default items). - Creating new items (for now, only links are available). This does not yet include: - Hiding items. - Reordering items. - Lots of fancy types of items (dashboards, etc). - Any UI changes. - Documentation (does feature: TODO link for documentation). Test Plan: {F1060695} {F1060696} {F1060697} Reviewers: chad Reviewed By: chad Maniphest Tasks: T10054 Differential Revision: https://secure.phabricator.com/D15010
32 lines
625 B
PHP
32 lines
625 B
PHP
<?php
|
|
|
|
final class PhabricatorTextEditField
|
|
extends PhabricatorEditField {
|
|
|
|
private $placeholder;
|
|
|
|
public function setPlaceholder($placeholder) {
|
|
$this->placeholder = $placeholder;
|
|
return $this;
|
|
}
|
|
|
|
public function getPlaceholder() {
|
|
return $this->placeholder;
|
|
}
|
|
|
|
protected function newControl() {
|
|
$control = new AphrontFormTextControl();
|
|
|
|
$placeholder = $this->getPlaceholder();
|
|
if (strlen($placeholder)) {
|
|
$control->setPlaceholder($placeholder);
|
|
}
|
|
|
|
return $control;
|
|
}
|
|
|
|
protected function newConduitParameterType() {
|
|
return new ConduitStringParameterType();
|
|
}
|
|
|
|
}
|