You are here

public function CacheDecoratedDataProvider::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/CacheDecoratedDataProvider.php, line 97
Contains \Drupal\restful\Plugin\resource\DataProvider\CacheDecoratedDataProvider.

Class

CacheDecoratedDataProvider
Class CacheDecoratedDataProvider.

Namespace

Drupal\restful\Plugin\resource\DataProvider

Code

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