You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[TASK] Establish proper API to set template layout (#1090)
The `ParsingState` now provides a proper method to set the
layout of a template during parsing/compilation. Previously, the
magic variable name `layoutName` has been used for that
purpose, but with the new `nodeInitializedEvent` we can now
access the `ParsingState` object directly.
The usage of the old variable name has been deprecated and
will no longer be evaluated with Fluid v5. Its main usage besides
the `<f:layout>` ViewHelper (see above) has been the cache
warmup command, which will receive a more straightforward
implementation with Fluid v5.
if (!isset($this->layoutName) && $this->variableContainer->exists(TemplateCompiler::LAYOUT_VARIABLE)) {
233
+
trigger_error('Setting a template\'s layout with the variable "layoutName" is deprecated and will no longer work in Fluid v5. Use ParsingState->setLayoutName() instead.', E_USER_DEPRECATED);
0 commit comments