Skip to content

[6.x] Fix plugin Twig variable registration#18903

Merged
brandonkelly merged 3 commits into
6.xfrom
rias/cms-2100-6x-plugin-twig-variable-not-registered
May 19, 2026
Merged

[6.x] Fix plugin Twig variable registration#18903
brandonkelly merged 3 commits into
6.xfrom
rias/cms-2100-6x-plugin-twig-variable-not-registered

Conversation

@riasvdv
Copy link
Copy Markdown
Contributor

@riasvdv riasvdv commented May 18, 2026

Description

Registers legacy CraftVariable::EVENT_INIT definitions as macros on the Laravel Twig variable from the Yii adapter, so plugin-provided Twig variables continue to resolve in templates.

Related issues

Fixes #18901

@linear-code
Copy link
Copy Markdown

linear-code Bot commented May 18, 2026

CMS-2100

CMS-2039

@riasvdv riasvdv force-pushed the rias/cms-2100-6x-plugin-twig-variable-not-registered branch from 357cb13 to 0b92673 Compare May 18, 2026 07:36
@riasvdv riasvdv marked this pull request as ready for review May 18, 2026 07:51
@brandonkelly brandonkelly merged commit 799222e into 6.x May 19, 2026
@brandonkelly brandonkelly deleted the rias/cms-2100-6x-plugin-twig-variable-not-registered branch May 19, 2026 02:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants