You are here

public function AddReminder::__construct in JSON:API Resources 8

Constructs a resource for adding a reminder.

Parameters

\Drupal\Core\Session\AccountInterface $current_user: The current user account.

File

tests/modules/jsonapi_resources_test/src/Resource/AddReminder.php, line 37

Class

AddReminder
Processes a request to create a reminder node for a user.

Namespace

Drupal\jsonapi_resources_test\Resource

Code

public function __construct(AccountInterface $current_user) {
  $this->currentUser = $current_user;
}