Allow infinitely nested CmsObjects that may have been permitted to load previously through the filesystem continue to load.

This commit is contained in:
Luke Towers 2020-09-04 15:22:48 -06:00
parent 7cb148c167
commit e9e4210842
1 changed files with 7 additions and 0 deletions

View File

@ -36,6 +36,13 @@ class CmsObject extends HalcyonModel implements CmsObjectContract
*/
public $customMessages = [];
/**
* @var int The maximum allowed path nesting level. The default value is 2,
* meaning that files can only exist in the root directory, or in a
* subdirectory. Set to null if any level is allowed.
*/
protected $maxNesting = null;
/**
* @var array The attributes that are mass assignable.
*/