You are here

public function FileManagementController::deleteFilePageTitle in File Management 8

Provides the title for the file edit page.

Parameters

\Drupal\file\FileInterface $file: The file entity to edit.

Return value

string The page title.

1 string reference to 'FileManagementController::deleteFilePageTitle'
file_management.routing.yml in ./file_management.routing.yml
file_management.routing.yml

File

src/Controller/FileManagementController.php, line 115

Class

FileManagementController
Provides the view, add pages and title callbacks for file entities.

Namespace

Drupal\file_management\Controller

Code

public function deleteFilePageTitle(FileInterface $file = NULL) {
  if (empty($file)) {
    return $this
      ->t('Delete file');
  }
  return $this
    ->t('<em>Delete file</em> @filename', [
    '@filename' => $file
      ->label(),
  ]);
}