You are here

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

Resource

Namespace

Drupal\restful\Plugin\resource

Code

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