return $query;
} /**
* {@inheritdoc}
*/
protected function initializeIterator() { $this->publicPath =
$this->
variableGet('file_public_path', 'sites/default/files'
);
$this->privatePath =
$this->
variableGet('file_private_path', NULL
);
return parent::
initializeIterator();
} /**
* {@inheritdoc}
*/
public function prepareRow(Row
$row) { // Compute the filepath property, which is a physical representation of
// the URI relative to the Drupal root.
$path =
str_replace(['public:/', 'private:/'
],
[$this->publicPath,
$this->privatePath
],
$row->
getSourceProperty('uri'
));
// At this point, $path could be an absolute path or a relative path,
// depending on how the scheme's variable was set. So we need to shear out