public function Resource::setAccount in RESTful 7.2
Overrides ResourceInterface::setAccount
File
- src/
Plugin/ resource/ Resource.php, line 134 - Contains \Drupal\restful\Plugin\resource\Resource.
Class
Namespace
Drupal\restful\Plugin\resourceCode
public function setAccount($account) {
$this->authenticationManager
->setAccount($account);
$this
->getDataProvider()
->setAccount($account);
}