You are here

public function ResourceDecoratorBase::setAccount in RESTful 7.2

Overrides ResourceInterface::setAccount

1 method overrides ResourceDecoratorBase::setAccount()
RateLimitDecoratedResource::setAccount in src/Plugin/resource/Decorators/RateLimitDecoratedResource.php

File

src/Plugin/resource/Decorators/ResourceDecoratorBase.php, line 69
Contains \Drupal\restful\Plugin\resource\Decorators\ResourceDecoratorBase.

Class

ResourceDecoratorBase
Class ResourceDecoratorBase.

Namespace

Drupal\restful\Plugin\resource\Decorators

Code

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