public function UserPermissionsBase::__construct in JSON-RPC 2.x
Same name and namespace in other branches
- 8 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\MethodCode
public function __construct(array $configuration, string $plugin_id, $plugin_definition, PermissionHandlerInterface $user_permissions) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->permissions = $user_permissions;
}