Commit 4ebc3ee0 authored by catch's avatar catch
Browse files

fix: #3554919 Stop discovering theme preprocess twice for theme engine discovered templates

By: berdir
By: nicxvan
(cherry picked from commit d0a1f5ba)
parent d2c03d8f
Loading
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -666,9 +666,6 @@ protected function processExtension(array &$cache, $name, $type, $theme, $path)
            // named variable preprocessors.
            $prefixes = [];
            $prefixes[] = $name . '_engine';
            // The theme engine registers on behalf of the theme using the
            // theme's name.
            $prefixes[] = $theme;

            foreach ($prefixes as $prefix) {
              foreach ([$prefix . '_preprocess', $prefix . '_preprocess_' . $hook] as $function) {