You are here

public function TokenAuthUser::getFieldDefinition in Simple OAuth (OAuth2) & OpenID Connect 8.4

Same name and namespace in other branches
  1. 8 src/Authentication/TokenAuthUser.php \Drupal\simple_oauth\Authentication\TokenAuthUser::getFieldDefinition()
  2. 8.2 src/Authentication/TokenAuthUser.php \Drupal\simple_oauth\Authentication\TokenAuthUser::getFieldDefinition()
  3. 8.3 src/Authentication/TokenAuthUser.php \Drupal\simple_oauth\Authentication\TokenAuthUser::getFieldDefinition()
  4. 5.x src/Authentication/TokenAuthUser.php \Drupal\simple_oauth\Authentication\TokenAuthUser::getFieldDefinition()

Gets the definition of a contained field.

Parameters

string $name: The name of the field.

Return value

\Drupal\Core\Field\FieldDefinitionInterface|null The definition of the field or null if the field does not exist.

Overrides FieldableEntityInterface::getFieldDefinition

File

src/Authentication/TokenAuthUser.php, line 524

Class

TokenAuthUser
The decorated user class with token information.

Namespace

Drupal\simple_oauth\Authentication

Code

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