records = array_map([$this, 'flattenRecord'], $this->initialParse($configuration)); } protected function flattenRecord($record) { $row = new Row($record); $this->flattenRow($row); return $row->getSource(); } /** * {@inheritdoc} */ public function fields() { $ret = [ 'fid' => 'File ID', 'uid' => 'User ID', 'uuid' => 'UUID', 'langcode' => 'ISO 639 language code', 'filename' => 'File name without directory', 'uri' => 'File URI, like public://foo.png', 'filemime' => 'Mime type per https://www.iana.org/assignments/media-types/media-types.xhtml', 'filesize' => 'File size, in bytes', 'status' => 'File status (temporary or permanent)', 'created' => 'Creation timestamp', 'changed' => 'Modification timestamp', ]; return $ret; } /** * {@inheritdoc} */ public function getIds() { $ids = [ 'fid' => [ 'type' => 'integer', ], ]; return $ids; } }