Skip to content

Commit

Permalink
NEW Add ElementalAreasPageExtension
Browse files Browse the repository at this point in the history
  • Loading branch information
emteknetnz committed Jul 11, 2024
1 parent 2ec8573 commit 32b15a8
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions code/elemental/MultiElementalAreasExtension.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?php

namespace SilverStripe\FrameworkTest\Elemental\Extension;

use DNADesign\Elemental\Extensions\ElementalAreasExtension;
use DNADesign\Elemental\Models\ElementalArea;

/**
* This is used to test multiple elemental areas on a page
*/
class MultiElementalAreasExtension extends ElementalAreasExtension
{
private static $has_one = [
'ElementalArea1' => ElementalArea::class,
'ElementalArea2' => ElementalArea::class
];

private static $owns = [
'ElementalArea1',
'ElementalArea2'
];
}

0 comments on commit 32b15a8

Please sign in to comment.