mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
Merge pull request #1370 from tractorcow/pulls/4.0/defaultclass
API Refactor out Page default classname hack
This commit is contained in:
commit
0a0ac86f5b
@ -61,6 +61,15 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid
|
||||
*/
|
||||
private static $default_child = "Page";
|
||||
|
||||
/**
|
||||
* Default value for SiteTree.ClassName enum
|
||||
* {@see DBClassName::getDefault}
|
||||
*
|
||||
* @config
|
||||
* @var string
|
||||
*/
|
||||
private static $default_classname = "Page";
|
||||
|
||||
/**
|
||||
* The default parent class for this page.
|
||||
* Note: Value might be cached, see {@link $allowed_chilren}.
|
||||
|
Loading…
Reference in New Issue
Block a user