Remove deprecated function call _drupal_flush_css_js() and FileSystemInterface::EXISTS_REPLACE in simple_menu_icons.module file

Created on 5 July 2024, 6 months ago
Updated 16 August 2024, 4 months ago

Problem/Motivation

_drupal_flush_css_js() has been deprecated in 10.2.0 see https://www.drupal.org/node/3358337

FileSystemInterface::EXISTS_REPLACE has been deprecated in 10.3.0 see https://www.drupal.org/node/3426517

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

📌 Task
Status

RTBC

Version

3.0

Component

Code

Created by

🇮🇳India manish-31

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

Merge Requests

Comments & Activities

  • Issue created by @manish-31
  • Status changed to Needs review 6 months ago
  • 🇮🇳India manish-31

    MR raised to replace deprecated code, needs review.

  • Status changed to RTBC 4 months ago
  • 🇮🇳India Tirupati_Singh

    Hi @manish-31, I've applied the raised MR !10 as a patch and it applied cleanly with no errors. After applying the patch all the deprecated method calls have been removed as per the Drupal documentation. After applying the patch, the module functionality is working as expected, and there are no errors related to the module functionality.

    However, there is an unrelated issue with the menu icon, the uploaded menu icon is not being displayed while using this module in Drupal 10.2 and 10.3 versions. This issue is documented separately at https://www.drupal.org/project/simple_menu_icons/issues/3379128 🐛 Generated CSS file being deleted immediately after being created RTBC . Applying the patch provided in that issue resolves the menu icon problem.

    As the provided MR !10 addresses the deprecated functions call issue effectively and has no errors, I am moving the issue status to RTBC.

    Tested on Drupal 10.3.2.

Production build 0.71.5 2024