public static function FileMimeApplyForm::count in File MIME 8
Returns count of files in file_managed table.
2 calls to FileMimeApplyForm::count()
- FileMimeApplyForm::getDescription in src/
Form/ FileMimeApplyForm.php - Returns additional text to display as a description.
- FileMimeApplyForm::process in src/
Form/ FileMimeApplyForm.php - Batch process callback.
File
- src/
Form/ FileMimeApplyForm.php, line 71
Class
- FileMimeApplyForm
- Implements the file MIME apply settings form.
Namespace
Drupal\filemime\FormCode
public static function count() {
return \Drupal::database()
->select('file_managed')
->countQuery()
->execute()
->fetchField();
}