Skip to content

Commit 89fbf45

Browse files
API Clean up deprecation notices (#11738)
1 parent b005c06 commit 89fbf45

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

src/Forms/HTMLReadonlyField.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
namespace SilverStripe\Forms;
44

5+
use SilverStripe\Dev\Deprecation;
6+
57
/**
68
* Readonly field equivalent for literal HTML
79
*
@@ -30,9 +32,11 @@ public function Field($properties = [])
3032
* Return value with all values encoded in html entities
3133
*
3234
* @return string Raw HTML
35+
* @deprecated 5.4.0 Will be replaced by getFormattedValueEntities() in a future major release
3336
*/
3437
public function ValueEntities()
3538
{
39+
Deprecation::noticeWithNoReplacment('5.4.0', 'Will be replaced by getFormattedValueEntities() in a future major release');
3640
return htmlentities($this->Value() ?? '', ENT_COMPAT, 'UTF-8');
3741
}
3842
}

src/Forms/TextareaField.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ public function getSchemaValidation()
208208
* Return value with all values encoded in html entities
209209
*
210210
* @return string Raw HTML
211-
* @deprecated 5.4.0 Use getFormattedValueEntities() instead
211+
* @deprecated 5.4.0 Will be replaced by getFormattedValueEntities() in a future major release
212212
*/
213213
public function ValueEntities()
214214
{

0 commit comments

Comments
 (0)