*
* @MigrateSource(
* id = "d6_upload_instance",
- * source_provider = "upload"
+ * source_module = "upload"
* )
*/
class UploadInstance extends DrupalSqlBase {
->fields('nt', ['type'])
->execute()
->fetchCol();
- $variables = array_map(function($type) { return 'upload_' . $type; }, $node_types);
+ $variables = array_map(function ($type) {
+ return 'upload_' . $type;
+ }, $node_types);
$max_filesize = $this->variableGet('upload_uploadsize_default', 1);
$max_filesize = $max_filesize ? $max_filesize . 'MB' : '';
/**
* {@inheritdoc}
*/
- public function count() {
+ public function count($refresh = FALSE) {
return count($this->initializeIterator());
}