Skip to content

Commit

Permalink
API Replace Extension subclasses
Browse files Browse the repository at this point in the history
  • Loading branch information
emteknetnz committed Aug 28, 2024
1 parent 9aa5941 commit c83278a
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions src/Extensions/ArchiveRestoreAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -18,9 +18,9 @@
/**
* Adds a restore action to the item edit form of ArchiveAdmin
*
* @extends DataExtension<VersionedGridFieldItemRequest>
* @extends Extension<VersionedGridFieldItemRequest>
*/
class ArchiveRestoreAction extends DataExtension
class ArchiveRestoreAction extends Extension
{
/**
* Updates the edit form with a restore button if it is being viewed
Expand Down
6 changes: 3 additions & 3 deletions src/Extensions/BlockArchiveExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -13,9 +13,9 @@
/**
* Adds a archive view for Elemental blocks
*
* @extends DataExtension<BaseElement>
* @extends Extension<BaseElement>
*/
class BlockArchiveExtension extends DataExtension implements ArchiveViewProvider
class BlockArchiveExtension extends Extension implements ArchiveViewProvider
{
/**
* @inheritDoc
Expand Down
6 changes: 3 additions & 3 deletions src/Extensions/FileArchiveExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -16,9 +16,9 @@
/**
* Adds a archive view for Files
*
* @extends DataExtension<File>
* @extends Extension<File>
*/
class FileArchiveExtension extends DataExtension implements ArchiveViewProvider
class FileArchiveExtension extends Extension implements ArchiveViewProvider
{
/**
* @inheritDoc
Expand Down
6 changes: 3 additions & 3 deletions src/Extensions/SiteTreeArchiveExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -13,9 +13,9 @@
/**
* Adds a archive view for Pages
*
* @extends DataExtension<SiteTree>
* @extends Extension<SiteTree>
*/
class SiteTreeArchiveExtension extends DataExtension implements ArchiveViewProvider
class SiteTreeArchiveExtension extends Extension implements ArchiveViewProvider
{
/**
* @inheritDoc
Expand Down

0 comments on commit c83278a

Please sign in to comment.