You are here

public function InviteSender::label in Invite 8

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/InviteSender.php, line 49

Class

InviteSender
Defines the Invite sender entity.

Namespace

Drupal\invite\Entity

Code

public function label() {
  return $this
    ->get('name')->value;
}