You are here

private function ManageFilesForm::minified_date in Minify JS 8

Helper function to format date.

Parameters

stdClass $file:

1 call to ManageFilesForm::minified_date()
ManageFilesForm::buildForm in src/Form/ManageFilesForm.php
Form constructor.

File

src/Form/ManageFilesForm.php, line 300

Class

ManageFilesForm
Displays a list of detected javascript files and allows actions to be performed on them

Namespace

Drupal\minifyjs\Form

Code

private function minified_date($file) {
  if ($file->minified_modified > 0) {
    return date('Y-m-d', $file->minified_modified);
  }
  return '-';
}