You are here

public function DataProvider::setAccount in RESTful 7.2

Sets the authenticated account.

Parameters

object $account: The fully loaded user account.

Overrides DataProviderInterface::setAccount

File

src/Plugin/resource/DataProvider/DataProvider.php, line 199
Contains \Drupal\restful\Plugin\resource\DataProvider\DataProvider.

Class

DataProvider

Namespace

Drupal\restful\Plugin\resource\DataProvider

Code

public function setAccount($account) {
  $this->account = $account;
}