Skip to content

Commit

Permalink
Merge pull request #42 from andrewnick/master
Browse files Browse the repository at this point in the history
Use namespaced classnames for excluded page types
  • Loading branch information
hubertusanton authored Dec 2, 2020
2 parents c4bb806 + 568730a commit 0eaee08
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/SeoObjectExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@
use SilverStripe\Forms\DropdownField;
use SilverStripe\Forms\ToggleCompositeField;
use SilverStripe\i18n\i18n;
use SilverStripe\ErrorPage\ErrorPage;
use SilverStripe\CMS\Model\VirtualPage;
use SilverStripe\CMS\Model\RedirectorPage;

/**
* SeoObjectExtension extends SiteTree with functionality for helping content authors to
Expand All @@ -41,9 +44,9 @@ class SeoObjectExtension extends DataExtension
* @var array
*/
private static $excluded_page_types = [
'ErrorPage',
'RedirectorPage',
'VirtualPage'
ErrorPage::class,
RedirectorPage::class,
VirtualPage::class
];

/**
Expand Down

0 comments on commit 0eaee08

Please sign in to comment.