public function Server::label in OAuth2 Server 8
Same name and namespace in other branches
- 2.0.x src/Entity/Server.php \Drupal\oauth2_server\Entity\Server::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/ Server.php, line 111
Class
- Server
- Defines the OAuth2 server entity.
Namespace
Drupal\oauth2_server\EntityCode
public function label() {
return isset($this->name) ? $this->name : NULL;
}