Source of file UnpublishCreator.php
Size: 0,813 Bytes - Last Modified: 2021-12-23T10:35:47+00:00
/var/www/docs.ssmods.com/process/src/src/GraphQL/Operations/UnpublishCreator.php
1234567891011121314151617181920212223242526272829303132333435 | <?php namespace SilverStripe\Versioned\GraphQL\Operations; use SilverStripe\GraphQL\Schema\Interfaces\OperationCreator; // GraphQL dependency is optional in versioned, // and the following implementation relies on existence of this class (in GraphQL v4) if (!interface_exists(OperationCreator::class)) { return; } /** * Scaffolds a generic update operation for DataObjects. */ class UnpublishCreator extends AbstractPublishOperationCreator { /** * @param string $typeName * @return string */ protected function createOperationName(string $typeName): string { return 'unpublish' . ucfirst($typeName); } /** * @return string */ protected function getAction(): string { return AbstractPublishOperationCreator::ACTION_UNPUBLISH; } } |