SilverStripe\AssetAdmin\GraphQL\UnpublishFileMutationCreator
Synopsis
class UnpublishFileMutationCreator
extends PublicationMutationCreator
implements
i18nEntityProvider
{
- // members
- protected string $name = 'unpublishFiles';
- protected string $description = 'Unpublishes a list of files';
- // Inherited members from PublicationMutationCreator
- protected $name;
- protected $description;
- protected array $warningMessages;
- // methods
- protected string sourceStage()
- protected boolean hasPermission()
- protected Notice|File mutateFile()
- public void provideI18nEntities()
- protected int countLiveOwners()
- // Inherited methods from PublicationMutationCreator
- public array attributes()
- public Type type()
- public array args()
- public array resolve()
- protected void addWarningMessage()
- protected abstract string sourceStage()
- protected abstract File|Notice mutateFile()
- protected abstract boolean hasPermission()
Hierarchy
Extends
Implements
- SilverStripe\i18n\i18nEntityProvider
Members
protected
- $description — string
- $description — string
- $name — string
- $name — string
- $warningMessages — array
Methods
protected
- countLiveOwners() — Count number of live owners this file uses
- hasPermission()
- mutateFile()
- sourceStage()
public
Inherited from SilverStripe\AssetAdmin\GraphQL\PublicationMutationCreator
protected
- addWarningMessage()
- hasPermission() — Return true if the member has permission to do the mutation
- mutateFile() — Apply the mutation
- sourceStage() — The stage that the file should be fetched from before mutation