You are here

public function Transaction::label in Transaction 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/Transaction.php, line 251

Class

Transaction
Provides the transaction content entity.

Namespace

Drupal\transaction\Entity

Code

public function label() {
  return strip_tags($this
    ->getDescription());
}