Skip to content

Commit

Permalink
Merge pull request #109 from creative-commoners/pulls/0.4/basic-eleme…
Browse files Browse the repository at this point in the history
…ntal-page

FIX Only add extension if elemental module exists
  • Loading branch information
GuySartorelli authored Jul 5, 2022
2 parents ce4dec4 + d0deef8 commit fa7e6fe
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 4 additions & 0 deletions _config/extensions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,7 @@ SilverStripe\FrameworkTest\Elemental\Model\ElementalBehatTestObject:
extensions:
- DNADesign\Elemental\Extensions\ElementalAreasExtension
- SilverStripe\FrameworkTest\Elemental\Extension\ElementalBehatTestExtension

BasicElementalPage:
extensions:
- DNADesign\Elemental\Extensions\ElementalPageExtension
6 changes: 1 addition & 5 deletions code/elemental/BasicElementalPage.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
<?php

use DNADesign\Elemental\Extensions\ElementalPageExtension;
// DNADesign\Elemental\Extensions\ElementalPageExtension is added in extensions.yml

class BasicElementalPage extends Page
{
private static $extensions = [
ElementalPageExtension::class,
];
}

0 comments on commit fa7e6fe

Please sign in to comment.