public function Resource::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
7 calls to Resource::getAccount()
- AccessToken__1_0::getOrCreateToken in modules/
restful_token_auth/ src/ Plugin/ resource/ AccessToken__1_0.php - Create a token for a user, and return its value.
- Discovery::resourceManipulationAccess in src/
Plugin/ resource/ Discovery.php - Helper callback to check authorization for write operations.
- FilesUpload__1_0::access in src/
Plugin/ resource/ FilesUpload__1_0.php - If "File entity" module exists, determine access by its provided permissions otherwise, check if variable is set to allow anonymous users to upload. Defaults to authenticated user.
- LoginCookie__1_0::loginAndRespondWithCookie in src/
Plugin/ resource/ LoginCookie__1_0.php - Login a user and return a JSON along with the authentication cookie.
- Resource::dataProviderFactory in src/
Plugin/ resource/ Resource.php - Data provider factory.
File
- src/
Plugin/ resource/ Resource.php, line 120 - Contains \Drupal\restful\Plugin\resource\Resource.
Class
Namespace
Drupal\restful\Plugin\resourceCode
public function getAccount($cache = TRUE) {
return $this->authenticationManager
->getAccount($this
->getRequest(), $cache);
}