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
Namespace
Drupal\restful\Plugin\resource\DataProviderCode
public function setAccount($account) {
$this->account = $account;
}