You are here

public function Subscription::label in Commerce Recurring Framework 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/Subscription.php, line 93

Class

Subscription
Defines the subscription entity.

Namespace

Drupal\commerce_recurring\Entity

Code

public function label() {
  return new FormattableMarkup('@title #@id', [
    '@title' => $this
      ->getTitle(),
    '@id' => $this
      ->id(),
  ]);
}