Add a helper to get the full path to a module file from a relative path

Created on 11 August 2023, over 1 year ago

Problem/Motivation

Pretty often a unit test needs to read some files from the module's folder, but it's pretty tricky because the location of the module from the DRUPAL_ROOT is not always the same.

So, will be good to have a function, that automatically detects the module folder and gives the full absolute path to a file from a relative path.

Feature request
Status

Fixed

Version

1.2

Component

Code

Created by

🇦🇲Armenia murz Yerevan, Armenia

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

Comments & Activities

Production build 0.71.5 2024