You are here

public function ResourceDecoratorBase::getAccount in RESTful 7.2

Get the user from for request.

Parameters

bool $cache: Boolean indicating if the resolved user should be cached for next calls.

Return value

object The fully loaded user object.

Overrides ResourceInterface::getAccount

See also

AuthenticatedResource

File

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

Class

ResourceDecoratorBase
Class ResourceDecoratorBase.

Namespace

Drupal\restful\Plugin\resource\Decorators

Code

public function getAccount($cache = TRUE) {
  return $this->subject
    ->getAccount($cache);
}