You are here

public function Task::label in General Data Protection Regulation 8.2

Same name and namespace in other branches
  1. 8 modules/gdpr_tasks/src/Entity/Task.php \Drupal\gdpr_tasks\Entity\Task::label()
  2. 3.0.x modules/gdpr_tasks/src/Entity/Task.php \Drupal\gdpr_tasks\Entity\Task::label()

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/gdpr_tasks/src/Entity/Task.php, line 150

Class

Task
Defines the Task entity.

Namespace

Drupal\gdpr_tasks\Entity

Code

public function label() {
  return $this
    ->t('Task @id', [
    '@id' => $this
      ->id(),
  ]);
}