You are here

public function PreviewLinkController::title in Preview Link 8

Preview page title.

Return value

string The title of the entity.

File

src/Controller/PreviewLinkController.php, line 29

Class

PreviewLinkController
Preview link controller to view any entity.

Namespace

Drupal\preview_link\Controller

Code

public function title() {
  return $this
    ->resolveEntity()
    ->label();
}