Skip to content
Snippets Groups Projects
Commit 86d67de6 authored by Mykola Antoshchuk's avatar Mykola Antoshchuk
Browse files

Issue #3443379 by Mykola Antoshchuk: Drupal 10 compatibility fixes

parent 862170e5
No related branches found
No related tags found
No related merge requests found
......@@ -106,7 +106,8 @@ class Theme {
protected function discoverFiles($theme, $type) {
$length = -(strlen($type) + 1);
$path = drupal_get_path('theme', $theme);
$path = \Drupal::service('extension.path.resolver')->getPath('theme', $theme);
// Only look for files that match the 'something.preprocess.inc' pattern.
$mask = '/.' . $type . '.inc$/';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment