$destination = drupal_tempnam('temporary://', 'gd_');
}
// Convert stream wrapper URI to normal path.
- $destination = drupal_realpath($destination);
+ $destination = \Drupal::service('file_system')->realpath($destination);
}
$function = 'image' . image_type_to_extension($this->getType(), FALSE);