drupal_get_path() is deprecated in drupal:9.3.0 and is removed from drupal:10.0.0

Created on 28 April 2022, over 2 years ago
Updated 12 December 2023, 12 months ago

Problem/Motivation

Remove drupal_get_path() is deprecated in drupal:9.3.0 and is removed from drupal:10.0.0. Use \Drupal\Core\Extension\ExtensionPathResolver::getPathname() instead. See https://www.drupal.org/node/2940438

Steps to reproduce

Proposed resolution

/layout_builder_blocks.module in layout_builder_blocks_form_alter() function

Switch to use \Drupal::service('extension.list.module')->getPath('bootstrap_styles') . '/images/ui/' . ($tab['icon'] ? $tab['icon'] : 'default.svg')

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇳🇮Nicaragua Ada Hernandez Leon

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024