You are here

public function WorkspacePointer::label in Workspace 8

@inheritDoc

Overrides ContentEntityBase::label

1 call to WorkspacePointer::label()
WorkspacePointer::generateReplicationId in src/Entity/WorkspacePointer.php

File

src/Entity/WorkspacePointer.php, line 47

Class

WorkspacePointer
Defines the Workspace pointer entity.

Namespace

Drupal\workspace\Entity

Code

public function label() {
  $label = parent::label();
  if (empty($label) && !empty($this
    ->getWorkspace())) {
    $label = $this
      ->getWorkspace()
      ->label();
  }
  return $label;
}