mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
ENHANCEMENT: Added LiteralField::setValue() so that so that LiteralField is more compatible with other field types.
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@78152 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
4da2743994
commit
f8fff9709d
@ -41,6 +41,13 @@ class LiteralField extends DatalessField {
|
||||
return $this->content;
|
||||
}
|
||||
|
||||
/**
|
||||
* Synonym of {@link setContent()} so that LiteralField is more compatible with other field types.
|
||||
*/
|
||||
function setValue($value) {
|
||||
return $this->setContent($value);
|
||||
}
|
||||
|
||||
function performReadonlyTransformation() {
|
||||
$clone = clone $this;
|
||||
$clone->setReadonly(true);
|
||||
|
Loading…
Reference in New Issue
Block a user