You are here

public function PaymentMethod::label in Commerce Core 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

modules/payment/src/Entity/PaymentMethod.php, line 80

Class

PaymentMethod
Defines the payment method entity class.

Namespace

Drupal\commerce_payment\Entity

Code

public function label() {
  return $this
    ->getType()
    ->buildLabel($this);
}