Page MenuHomec4science

PhabricatorTextEditField.php
No OneTemporary

File Metadata

Created
Fri, Sep 27, 03:42

PhabricatorTextEditField.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();
}
}

Event Timeline