Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal-3338541
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
drupal-3338541
Commits
0c8a680e
Unverified
Commit
0c8a680e
authored
3 years ago
by
Alex Pott
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3262500
by andypost: Remove leftover mentions of drupal_find_theme_functions() in Drupal 10
parent
9e6fedbd
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
core/includes/theme.inc
+1
-1
1 addition, 1 deletion
core/includes/theme.inc
core/lib/Drupal/Core/Theme/Registry.php
+1
-1
1 addition, 1 deletion
core/lib/Drupal/Core/Theme/Registry.php
with
2 additions
and
2 deletions
core/includes/theme.inc
+
1
−
1
View file @
0c8a680e
...
...
@@ -198,7 +198,7 @@ function drupal_find_theme_templates($cache, $extension, $path) {
// Find templates that implement possible "suggestion" variants of registered
// theme hooks and add those as new registered theme hooks. See
//
drupal_find_theme_functions
() for more information about suggestions and
//
hook_theme_suggestions_alter
() for more information about suggestions and
// the use of 'pattern' and 'base hook'.
$patterns
=
array_keys
(
$files
);
foreach
(
$cache
as
$hook
=>
$info
)
{
...
...
This diff is collapsed.
Click to expand it.
core/lib/Drupal/Core/Theme/Registry.php
+
1
−
1
View file @
0c8a680e
...
...
@@ -738,7 +738,7 @@ protected function postProcessExtension(array &$cache, ActiveTheme $theme) {
foreach
(
$cache
as
$hook
=>
$info
)
{
// The 'base hook' is only applied to derivative hooks already registered
// from a pattern. This is typically set from
//
drupal_find_theme_functions() and
drupal_find_theme_templates().
// drupal_find_theme_templates().
if
(
isset
(
$info
[
'incomplete preprocess functions'
]))
{
$this
->
completeSuggestion
(
$hook
,
$cache
);
unset
(
$cache
[
$hook
][
'incomplete preprocess functions'
]);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment