Skip to content

Commit

Permalink
Merge pull request #386 from systopia/use-RemoteGetActions
Browse files Browse the repository at this point in the history
AbstractRemoteFundingEntity: Use `RemoteGetActions`
  • Loading branch information
dontub authored Jan 7, 2025
2 parents 0ee842c + 7e21e0a commit 2c53d1f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Civi/Funding/Api4/AbstractRemoteFundingEntity.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
use Civi\Funding\Api4\Action\Remote\RemoteFundingCheckAccessAction;
use Civi\Funding\Api4\Action\Remote\RemoteFundingGetFieldsAction;
use Civi\Funding\Api4\Traits\RemotePermissionsTrait;
use Civi\RemoteTools\Api4\Action\RemoteGetActions;

class AbstractRemoteFundingEntity extends AbstractEntity {

Expand All @@ -35,6 +36,13 @@ public static function checkAccess() {
return new RemoteFundingCheckAccessAction(static::getEntityName(), __FUNCTION__);
}

/**
* @return \Civi\RemoteTools\Api4\Action\RemoteGetActions
*/
public static function getActions($checkPermissions = TRUE) {
return new RemoteGetActions(static::getEntityName(), __FUNCTION__);
}

/**
* @inheritDoc
*/
Expand Down

0 comments on commit 2c53d1f

Please sign in to comment.