mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Deprecate TextField::InternallyLabelledField() (closes #1684)
This commit is contained in:
parent
0ce257495b
commit
d9798af30c
@ -74,6 +74,8 @@ class TextField extends FormField {
|
|||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
public function InternallyLabelledField() {
|
public function InternallyLabelledField() {
|
||||||
|
Deprecation::notice('4.0', 'Please use ->setValue() instead');
|
||||||
|
|
||||||
if(!$this->value) {
|
if(!$this->value) {
|
||||||
$this->value = $this->Title();
|
$this->value = $this->Title();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user