Source of file ArchiveViewProvider.php
Size: 0,818 Bytes - Last Modified: 2021-12-23T10:36:08+00:00
/var/www/docs.ssmods.com/process/src/src/Interfaces/ArchiveViewProvider.php
123456789101112131415161718192021222324252627282930313233343536 | <?php namespace SilverStripe\VersionedAdmin\Interfaces; use SilverStripe\Forms\FormField; use SilverStripe\Forms\GridField\GridField; use SilverStripe\ORM\DataObject; /** * A provider of a view for the archive admin */ interface ArchiveViewProvider { /** * Returns the classname of the objects displayed in the field * * @return array */ public function getArchiveFieldClass(); /** * Method on a {@link DataObject} which returns a custom field (usually {@link GridField}) * for viewing and/or interacting with this objects archived records * * @return FormField */ public function getArchiveField(); /** * Returns whether the archive panel should be shown * * @return boolean */ public function isArchiveFieldEnabled(); } |