You are here

public function FeedbackMessage::label in Feedback 3.x

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/FeedbackMessage.php, line 77

Class

FeedbackMessage
Defines the Feedback message entity.

Namespace

Drupal\feedback\Entity

Code

public function label() {
  $label = $this
    ->getEntityType()
    ->getLabel() . " " . $this
    ->id();
  return $label;
}