mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-09-29 20:59:23 +02:00
API Make default_cast Text and not HTMLText
This commit is contained in:
parent
d2650bbc44
commit
9bd6dd9ade
@ -1218,14 +1218,14 @@ class SSViewerTest_GlobalProvider implements TemplateGlobalProvider, TestOnly {
|
|||||||
|
|
||||||
public static function get_template_global_variables() {
|
public static function get_template_global_variables() {
|
||||||
return array(
|
return array(
|
||||||
'SSViewerTest_GlobalHTMLFragment' => array('method' => 'get_html'),
|
'SSViewerTest_GlobalHTMLFragment' => array('method' => 'get_html', 'casting' => 'HTMLText'),
|
||||||
'SSViewerTest_GlobalHTMLEscaped' => array('method' => 'get_html', 'casting' => 'Varchar'),
|
'SSViewerTest_GlobalHTMLEscaped' => array('method' => 'get_html'),
|
||||||
|
|
||||||
'SSViewerTest_GlobalAutomatic',
|
'SSViewerTest_GlobalAutomatic',
|
||||||
'SSViewerTest_GlobalReferencedByString' => 'get_reference',
|
'SSViewerTest_GlobalReferencedByString' => 'get_reference',
|
||||||
'SSViewerTest_GlobalReferencedInArray' => array('method' => 'get_reference'),
|
'SSViewerTest_GlobalReferencedInArray' => array('method' => 'get_reference'),
|
||||||
|
|
||||||
'SSViewerTest_GlobalThatTakesArguments' => array('method' => 'get_argmix')
|
'SSViewerTest_GlobalThatTakesArguments' => array('method' => 'get_argmix', 'casting' => 'HTMLText')
|
||||||
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -32,7 +32,7 @@ class ViewableData extends Object implements IteratorAggregate {
|
|||||||
*
|
*
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
public static $default_cast = 'HTMLText';
|
public static $default_cast = 'Text';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var array
|
* @var array
|
||||||
|
Loading…
Reference in New Issue
Block a user