You are here

public function CacheDecoratedDataProvider::getAccount in RESTful 7.2

Gets the authenticated account.

Return value

object The fully loaded user account.

Overrides DataProviderInterface::getAccount

File

src/Plugin/resource/DataProvider/CacheDecoratedDataProvider.php, line 90
Contains \Drupal\restful\Plugin\resource\DataProvider\CacheDecoratedDataProvider.

Class

CacheDecoratedDataProvider
Class CacheDecoratedDataProvider.

Namespace

Drupal\restful\Plugin\resource\DataProvider

Code

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