private function ManageFilesForm::minified_file in Minify JS 8
Helper function to format the file url.
Parameters
stdClass $file:
1 call to ManageFilesForm::minified_file()
- ManageFilesForm::buildForm in src/
Form/ ManageFilesForm.php - Form constructor.
File
- src/
Form/ ManageFilesForm.php, line 330
Class
- ManageFilesForm
- Displays a list of detected javascript files and allows actions to be performed on them
Namespace
Drupal\minifyjs\FormCode
private function minified_file($file) {
if (!empty($file->minified_uri)) {
return Link::fromTextAndUrl(basename($file->minified_uri), Url::fromUri(file_create_url($file->minified_uri), [
'attributes' => [
'target' => '_blank',
],
]));
}
return '-';
}