JSON extension hardcoded in the Codebase import source, importMenu method

Created on 16 July 2024, 5 months ago

System information

  • Drupal Core Version: ^10.2 || ^11
  • Menu Migration Version: 4.0.0-alpha1
  • PHP Version: >=8.1 && <=8.3

Problem/Motivation

The "Codebase" import source has the import filename's extension hardcoded to "json":
if ($contents = file_get_contents("{$directory}/{$menuName}.json")) {

Proposed resolution

Update the code to use the dynamic default extension provided by the selected format, instead of the hardcoded "json" string.

🐛 Bug report
Status

Active

Version

4.0

Component

Code

Created by

🇷🇴Romania bbu23

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