You are here

public function Scope::label in OAuth2 Server 2.0.x

Same name and namespace in other branches
  1. 8 src/Entity/Scope.php \Drupal\oauth2_server\Entity\Scope::label()

Gets the label of the entity.

Return value

string|null The label of the entity, or NULL if there is no label defined.

Overrides EntityBase::label

File

src/Entity/Scope.php, line 103

Class

Scope
Defines the OAuth2 scope entity.

Namespace

Drupal\oauth2_server\Entity

Code

public function label() {
  return isset($this->scope_id) ? $this->scope_id : NULL;
}