Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/customfield/DifferentialTitleField.php
Show All 32 Lines | final class DifferentialTitleField | ||||
public function readValueFromRequest(AphrontRequest $request) { | public function readValueFromRequest(AphrontRequest $request) { | ||||
$this->setValue($request->getStr($this->getFieldKey())); | $this->setValue($request->getStr($this->getFieldKey())); | ||||
} | } | ||||
protected function isCoreFieldRequired() { | protected function isCoreFieldRequired() { | ||||
return true; | return true; | ||||
} | } | ||||
public function renderEditControl() { | public function renderEditControl(array $handles) { | ||||
return id(new AphrontFormTextAreaControl()) | return id(new AphrontFormTextAreaControl()) | ||||
->setHeight(AphrontFormTextAreaControl::HEIGHT_VERY_SHORT) | ->setHeight(AphrontFormTextAreaControl::HEIGHT_VERY_SHORT) | ||||
->setName($this->getFieldKey()) | ->setName($this->getFieldKey()) | ||||
->setValue($this->getValue()) | ->setValue($this->getValue()) | ||||
->setError($this->getFieldError()) | ->setError($this->getFieldError()) | ||||
->setLabel($this->getFieldName()); | ->setLabel($this->getFieldName()); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 44 Lines • Show Last 20 Lines |