You are here

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

Constructs a resource for adding a comment.

Parameters

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

File

tests/modules/jsonapi_resources_test/src/Resource/AddComment.php, line 35

Class

AddComment
Processes a request to create a comment on an article.

Namespace

Drupal\jsonapi_resources_test\Resource

Code

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