diff --git a/src/Forms/FormField.php b/src/Forms/FormField.php index 00eef25510c..fa4a7653634 100644 --- a/src/Forms/FormField.php +++ b/src/Forms/FormField.php @@ -448,9 +448,11 @@ public function getInputType() * * @see FormField::setSubmittedValue() * @return mixed + * @deprecated 5.4.0 Will be replaced by getFormattedValue() and getValue() */ public function Value() { + Deprecation::notice('5.4.0', 'Will be replaced by getFormattedValue() and getValue()'); return $this->value; } diff --git a/src/Forms/TextareaField.php b/src/Forms/TextareaField.php index 0dd025a7f74..55d73786305 100644 --- a/src/Forms/TextareaField.php +++ b/src/Forms/TextareaField.php @@ -2,6 +2,8 @@ namespace SilverStripe\Forms; +use SilverStripe\Dev\Deprecation; + /** * TextareaField creates a multi-line text field, * allowing more data to be entered than a standard @@ -206,9 +208,11 @@ public function getSchemaValidation() * Return value with all values encoded in html entities * * @return string Raw HTML + * @deprecated 5.4.0 Use getFormattedValueEntities() instead */ public function ValueEntities() { + Deprecation::noticeWithNoReplacment('5.4.0', 'Will be replaced by getFormattedValueEntities()'); return htmlentities($this->Value() ?? '', ENT_COMPAT, 'UTF-8'); } }