You are here

public function EmailConfirmation::label in Email confirmer 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 ContentEntityBase::label

File

src/Entity/EmailConfirmation.php, line 48

Class

EmailConfirmation
Defines the email confirmation entity class.

Namespace

Drupal\email_confirmer\Entity

Code

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