You are here

public function Payment::label in Payment 8.2

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/Payment.php, line 100

Class

Payment
Defines a payment entity.

Namespace

Drupal\payment\Entity

Code

public function label() {
  return (string) $this
    ->getPaymentType()
    ->getPaymentDescription();
}