Now, the {settings} are automatically available in partials and sections.
Before, they had to be passed explicitely, i.e. by calling
<f:render section="..." arguments="{settings: settings}" />.
If somebody defined his own "settings"-argument, this still takes precedence:
<f:render section="..." arguments="{settings: some.different.settings}" />
This means that this change is completely backwards compatible.
NOTE: The settings are NOT merged together, like it has been suggested in #6289,
as this will lead to un-obvious behavior for the user.
* @api
*/
public function render($section = NULL, $partial = NULL, $arguments = array()) {
+ if (!isset($arguments['settings'])) {
+ $arguments['settings'] = $this->templateVariableContainer->get('settings');
+ }
if ($partial !== NULL) {
return $this->viewHelperVariableContainer->getView()->renderPartial($partial, $section, $arguments);
} elseif ($section !== NULL) {