FILE_STATUS_PERMANENT is deprecated

Created on 8 August 2023, over 1 year ago
Updated 6 September 2023, about 1 year ago

Problem

Error: Undefined constant "Drupal\svg_icon\Plugin\EntityReferenceSelection\FILE_STATUS_PERMANENT" in Drupal\svg_icon\Plugin\EntityReferenceSelection\SvgSelection->buildEntityQuery() (line 28 of /var/www/html/local.cheetah.com/docroot/modules/contrib/svg_icon/src/Plugin/EntityReferenceSelection/SvgSelection.php).

CR: https://www.drupal.org/node/3022147

Steps to reproduce

Upgrade module to make it D10 compatible. Add or edit node. Add paragraph content that already contains the svg icon field. The paragraph does not load and we see this error in the logs

Proposed resolution

Change:
FILE_STATUS_PERMANENT
to
FileInterface::STATUS_PERMANENT

Attached patch for the same.

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇮🇳India kssundar Bengaluru

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

Comments & Activities

Production build 0.71.5 2024