Problem/Motivation

The UI Patterns module adds a #context object to the template variables. But this can cause issue in the future, as it is possible that Drupal Core defines itself a #context array.

@see https://www.drupal.org/project/drupal/issues/2511548#comment-15457093

Steps to reproduce

We get a PHP Fatal error.

Proposed resolution

Maybe create the context object inside the "ui_patterns_theme_suggestions_alter()" function, but not before?

Comments

nicolas-lsn created an issue. See original summary.

pdureau’s picture

For information, #context property will not be kept in UI Patterns 2.x because it is used mainly for preprocesses hooks which are forbidden by SDC.

pdureau’s picture

Status: Active » Postponed (maintainer needs more info)

Is it OK Nicolas?

pdureau’s picture

Status: Postponed (maintainer needs more info) » Closed (outdated)