FileSystemInterface replace behavior constants are deprecated

Created on 1 October 2024, 6 months ago

Problem/Motivation

FileSystemInterface replace behavior constants are deprecated. Currently in savePrintable function in printBuilder service we have
return \Drupal::service('file_system')->saveData($print_engine->getBlob(), $uri, FileSystemInterface::EXISTS_REPLACE);

Proposed resolution

Replace it with
return \Drupal::service('file_system')->saveData($print_engine->getBlob(), $uri, FileExists::Replace);

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇵🇰Pakistan hmdnawaz

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024