Closed lkraav closed 5 years ago
While it's not used in the method, this variable is assigned so that it's available to templates. Not sure if there's another way around that.
Oh, you mean it's in the scope for the include()
statement and the goal is to provide both $data
and standalone extracted variables?
Yes. The original plan was not to extract, but that was added as an extra feature.
I think in the case of PlatesView
, I can still remove $data
here, because it won't be in scope with another engine's render call.
https://github.com/justintadlock/hybrid-core/blob/5.0.0/src/View/View.php#L184
Advanced IDEs flag this automatically.