You are here

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

Class

DataProviderDecorator

Namespace

Drupal\restful\Plugin\resource\DataProvider

Code

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