Merge pull request #18 from ryanjohnston/feature/cascade-duplicates

Handle duplication of pages with elemental-list properly
This commit is contained in:
Will Rossiter 2018-07-12 09:02:56 +12:00 committed by GitHub
commit 854021929f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,6 +26,10 @@ class ElementList extends BaseElement
'Elements' 'Elements'
]; ];
private static $cascade_duplicates = [
'Elements'
];
private static $extensions = [ private static $extensions = [
ElementalAreasExtension::class ElementalAreasExtension::class
]; ];
@ -35,7 +39,7 @@ class ElementList extends BaseElement
private static $title = 'Group'; private static $title = 'Group';
private static $description = 'Orderable list of elements'; private static $description = 'Orderable list of elements';
private static $singular_name = 'list'; private static $singular_name = 'list';
private static $plural_name = 'lists'; private static $plural_name = 'lists';