You are here

private function ManageFilesForm::minifiedDate in Minify JS 8.2

Helper function to format date.

Parameters

object $file: The file that has the date to be formatted.

Return value

string The formatted date.

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

File

src/Form/ManageFilesForm.php, line 312

Class

ManageFilesForm
Manage files form class.

Namespace

Drupal\minifyjs\Form

Code

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