comparison core/modules/image/src/Tests/ImageFieldTestBase.php @ 18:af1871eacc83

Update to Drupal core 8.7.1
author Chris Cannam
date Thu, 09 May 2019 15:33:08 +0100
parents 129ea1e6d783
children
comparison
equal deleted inserted replaced
17:129ea1e6d783 18:af1871eacc83
107 107
108 /** 108 /**
109 * Retrieves the fid of the last inserted file. 109 * Retrieves the fid of the last inserted file.
110 */ 110 */
111 protected function getLastFileId() { 111 protected function getLastFileId() {
112 return (int) db_query('SELECT MAX(fid) FROM {file_managed}')->fetchField(); 112 return (int) \Drupal::entityQueryAggregate('file')->aggregate('fid', 'max')->execute()[0]['fid_max'];
113 } 113 }
114 114
115 } 115 }