Fix Error: Call to undefined function drupal_get_path() in varbase_layout_builder_library_info_alter()

Created on 9 October 2023, about 1 year ago
Updated 15 October 2023, about 1 year ago

Problem/Motivation

Facing an AJAX error while adding a section under Drupal ~10.1.0
But using the Varbase ~9.0 and Varbase Layout Builder ~10.0.0

Proposed resolution

  • Change to \Drupal::service('extension.list.module')->getPath('varbase_layout_builder')

Remaining tasks

  • ✅ File an issue about this project
  • ✅ Addition/Change/Update/Fix to this project
  • ✅ Testing to ensure no regression
  • ➖ Automated unit/functional testing coverage
  • ➖ Developer Documentation support on feature change/addition
  • ➖ User Guide Documentation support on feature change/addition
  • ➖ Accessibility and Readability
  • ✅ Code review from 1 Varbase core team member
  • ✅ Full testing and approval
  • ✅ Credit contributors
  • ✅ Review with the product owner
  • ✅ Update Release Notes and Update Helper on new feature change/addition
  • ✅ Release varbase-9.0.16 , varbase_layout_builder-10.0.36

Varbase update type

  • ✅ No Update
  • ➖ Optional Update
  • ➖ Forced Update
  • ➖ Forced Update if Unchanged

User interface changes

  • N/A

API changes

  • N/A

Data model changes

  • N/A

Release notes snippet

  • Issue #3392777 : Fixed Error: Call to undefined function drupal_get_path() in varbase_layout_builder_library_info_alter()
📌 Task
Status

Fixed

Version

10.0

Component

Code

Created by

🇯🇴Jordan Rajab Natshah Jordan

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

Comments & Activities

Production build 0.71.5 2024