GetAccessTokenResource
extends ResourceBase
in package
Provides a resource to get view modes by entity and bundle.
Tags
Table of Contents
- $authenticationService : AuthenticationService
- The authentication service, used to handle all kinds of auth stuff.
- create() : mixed
- {@inheritdoc}
- get() : ResourceResponse
- Return the current users access token.
Properties
$authenticationService
The authentication service, used to handle all kinds of auth stuff.
protected
AuthenticationService
$authenticationService
Methods
create()
{@inheritdoc}
public
static create(ContainerInterface $container, array<string|int, mixed> $configuration, mixed $plugin_id, mixed $plugin_definition) : mixed
Parameters
- $container : ContainerInterface
- $configuration : array<string|int, mixed>
- $plugin_id : mixed
- $plugin_definition : mixed
Return values
mixed —get()
Return the current users access token.
public
get() : ResourceResponse
Tags
Return values
ResourceResponse —The HTTP response object.