You are here

public function UserPermissionsBase::__construct in JSON-RPC 8

Same name and namespace in other branches
  1. 2.x modules/jsonrpc_core/src/Plugin/jsonrpc/Method/UserPermissionsBase.php \Drupal\jsonrpc_core\Plugin\jsonrpc\Method\UserPermissionsBase::__construct()

UserPermissions constructor.

Overrides JsonRpcMethodBase::__construct

File

modules/jsonrpc_core/src/Plugin/jsonrpc/Method/UserPermissionsBase.php, line 26

Class

UserPermissionsBase
Base method for methods that ned access to the user.permissions service.

Namespace

Drupal\jsonrpc_core\Plugin\jsonrpc\Method

Code

public function __construct(array $configuration, string $plugin_id, $plugin_definition, PermissionHandlerInterface $user_permissions) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->permissions = $user_permissions;
}