public function FileManagementController::addFilePageTitle 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::addFilePageTitle'
File
- src/
Controller/ FileManagementController.php, line 98  
Class
- FileManagementController
 - Provides the view, add pages and title callbacks for file entities.
 
Namespace
Drupal\file_management\ControllerCode
public function addFilePageTitle(FileInterface $file = NULL) {
  if (empty($file)) {
    return $this
      ->t('Edit file');
  }
  return $this
    ->t('<em>Edit file</em> @filename', [
    '@filename' => $file
      ->label(),
  ]);
}