Merge pull request #1370 from tractorcow/pulls/4.0/defaultclass

API Refactor out Page default classname hack
This commit is contained in:
Daniel Hensby 2016-01-21 22:40:33 +00:00
commit 0a0ac86f5b

View File

@ -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}.