- Issue created by @prudloff
We use hook_library_info_alter() to alter the path of html2canvas but website_feedback_requirements() still complains it can't find it at the original path.
Add this kind of hook:
/**
* Implements hook_library_info_alter().
*/
function foo_library_info_alter(array &$libraries, string $extension): void {
if ($extension == 'website_feedback') {
$libraries['html2canvas']['js']['/foo/html2canvas.min.js'] = $libraries['html2canvas']['js']['/libraries/html2canvas/html2canvas.min.js'];
unset($libraries['html2canvas']['js']['/libraries/html2canvas/html2canvas.min.js']);
}
}
Browse to /admin/reports/status: it still checks the original path.
The library.discovery service could be used to get the path of the library.
Active
1.1
Code