From c83278abadc84500cd6a921cbde943ff05f4a539 Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Tue, 20 Aug 2024 16:26:58 +1200 Subject: [PATCH] API Replace Extension subclasses --- src/Extensions/ArchiveRestoreAction.php | 6 +++--- src/Extensions/BlockArchiveExtension.php | 6 +++--- src/Extensions/FileArchiveExtension.php | 6 +++--- src/Extensions/SiteTreeArchiveExtension.php | 6 +++--- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/Extensions/ArchiveRestoreAction.php b/src/Extensions/ArchiveRestoreAction.php index 5d81160..6e4e7a7 100644 --- a/src/Extensions/ArchiveRestoreAction.php +++ b/src/Extensions/ArchiveRestoreAction.php @@ -7,7 +7,7 @@ use SilverStripe\Forms\FieldList; use SilverStripe\Forms\Form; use SilverStripe\Forms\FormAction; -use SilverStripe\ORM\DataExtension; +use SilverStripe\Core\Extension; use SilverStripe\ORM\DataObject; use SilverStripe\ORM\ValidationResult; use SilverStripe\Versioned\RestoreAction; @@ -18,9 +18,9 @@ /** * Adds a restore action to the item edit form of ArchiveAdmin * - * @extends DataExtension + * @extends Extension */ -class ArchiveRestoreAction extends DataExtension +class ArchiveRestoreAction extends Extension { /** * Updates the edit form with a restore button if it is being viewed diff --git a/src/Extensions/BlockArchiveExtension.php b/src/Extensions/BlockArchiveExtension.php index d839d25..25c9ad7 100644 --- a/src/Extensions/BlockArchiveExtension.php +++ b/src/Extensions/BlockArchiveExtension.php @@ -4,7 +4,7 @@ use DNADesign\Elemental\Models\BaseElement; use SilverStripe\Forms\GridField\GridFieldDataColumns; -use SilverStripe\ORM\DataExtension; +use SilverStripe\Core\Extension; use SilverStripe\ORM\FieldType\DBDatetime; use SilverStripe\Security\Member; use SilverStripe\VersionedAdmin\ArchiveAdmin; @@ -13,9 +13,9 @@ /** * Adds a archive view for Elemental blocks * - * @extends DataExtension + * @extends Extension */ -class BlockArchiveExtension extends DataExtension implements ArchiveViewProvider +class BlockArchiveExtension extends Extension implements ArchiveViewProvider { /** * @inheritDoc diff --git a/src/Extensions/FileArchiveExtension.php b/src/Extensions/FileArchiveExtension.php index cc102c6..3fd3781 100644 --- a/src/Extensions/FileArchiveExtension.php +++ b/src/Extensions/FileArchiveExtension.php @@ -6,7 +6,7 @@ use SilverStripe\Assets\File; use SilverStripe\Core\Config\Config; use SilverStripe\Forms\GridField\GridFieldDataColumns; -use SilverStripe\ORM\DataExtension; +use SilverStripe\Core\Extension; use SilverStripe\ORM\FieldType\DBDatetime; use SilverStripe\Versioned\GridFieldRestoreAction; use SilverStripe\VersionedAdmin\ArchiveAdmin; @@ -16,9 +16,9 @@ /** * Adds a archive view for Files * - * @extends DataExtension + * @extends Extension */ -class FileArchiveExtension extends DataExtension implements ArchiveViewProvider +class FileArchiveExtension extends Extension implements ArchiveViewProvider { /** * @inheritDoc diff --git a/src/Extensions/SiteTreeArchiveExtension.php b/src/Extensions/SiteTreeArchiveExtension.php index 3debea3..56ee98c 100644 --- a/src/Extensions/SiteTreeArchiveExtension.php +++ b/src/Extensions/SiteTreeArchiveExtension.php @@ -4,7 +4,7 @@ use SilverStripe\CMS\Model\SiteTree; use SilverStripe\Forms\GridField\GridFieldDataColumns; -use SilverStripe\ORM\DataExtension; +use SilverStripe\Core\Extension; use SilverStripe\ORM\FieldType\DBDatetime; use SilverStripe\Security\Member; use SilverStripe\VersionedAdmin\ArchiveAdmin; @@ -13,9 +13,9 @@ /** * Adds a archive view for Pages * - * @extends DataExtension + * @extends Extension */ -class SiteTreeArchiveExtension extends DataExtension implements ArchiveViewProvider +class SiteTreeArchiveExtension extends Extension implements ArchiveViewProvider { /** * @inheritDoc