Problem/Motivation

The UI Patterns Extends module:

lets you extend existing ui patterns, allowing you to reuse existing fields and settings from the parent.

Currently in our UI Patterns integration we don't have a good way of supporting global variables, short of adding them separately to every pattern.

Proposed resolution

  • In Component Schema UI Patterns, add a dependency on ui_patterns_extends:ui_patterns_extends.
  • In the plugin deriver, add a global pattern and assign all global variables to it. Then remove global variables from the other derived patterns (since they will be handled by the ui_patterns_extends integration, and leaving them in would lead to duplication).Note: will benefit from #3198294: Support the 'group' property of UI Patterns Settings, which will group the global settings.

Remaining tasks

User interface changes

API changes

Data model changes

Comments

nedjo created an issue. See original summary.

nedjo’s picture

Issue summary: View changes
nedjo’s picture

Issue summary: View changes
nedjo’s picture

Status: Active » Closed (duplicate)

For this to work we have to implement inheritance in Component Schema, so that inherited variables will be processed with a component. Once that's done, there's no point in using UI Patterns Extends, since it would just duplicate the inheritance we've already done. Therefore closing in favour of #3199223: Support inheritance between components.