private function EasyMetaForm::persistImage in Easymeta 8
Parameters
$fid:
1 call to EasyMetaForm::persistImage()
- EasyMetaForm::submitForm in src/
Form/ EasyMetaForm.php - Form submission handler.
File
- src/
Form/ EasyMetaForm.php, line 138
Class
- EasyMetaForm
- Build and process meta form.
Namespace
Drupal\easymeta\FormCode
private function persistImage($fid) {
if ($fid) {
$query = \Drupal::database()
->update('file_managed');
$query
->fields([
"status" => 1,
]);
$query
->condition('fid', $fid);
$query
->execute();
}
}