Skip to content

Commit

Permalink
AbstractRemoteFundingEntity: Use RemoteGetActions
Browse files Browse the repository at this point in the history
  • Loading branch information
Dominic Tubach committed Jan 7, 2025
1 parent 0ee842c commit 7e21e0a
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 7e21e0a

Please sign in to comment.