Problem/Motivation

Currently the preprocesses of base/parent themes of the current active theme don't run. This is unlike how theme hooks currently work, which apply the base theme and then the current theme.

Steps to reproduce

Create a theme, add preprocess plugin to that theme. Create another theme and use the other theme as a base theme. These preprocesses don't run.

CommentFileSizeAuthor
#2 3232746-02.patch577 bytesgrathbone

Issue fork preprocess-3232746

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

grathbone created an issue. See original summary.

grathbone’s picture

Status: Active » Needs review
StatusFileSize
new577 bytes

Patch attached.

steffenr’s picture

Status: Needs review » Reviewed & tested by the community

@grathbone: Thanks for the patch.
We had the same issue and could resolve it by applying the patch.

sjerdo made their first commit to this issue’s fork.

sjerdo’s picture

Status: Reviewed & tested by the community » Fixed

Thanks! Committed and tagging a new release

Now that this issue is closed, please review the contribution record.

As a contributor, attribute any organization helped you, or if you volunteered your own time.

Maintainers, please credit people who helped resolve this issue.

  • sjerdo committed 977fe939 on 2.x
    [#3232746] feat: Support base / parent themes
    

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.