- Issue created by @yassrzg
- Status changed to Active
9 months ago 10:21pm 25 March 2024 - 🇫🇷France Grimreaper France 🇫🇷
Hi,
Thanks for your interest in UI Skins. This will be a nice addition.
"Needs work" status is for when some patches or MR not ready had been created. If there is no code already shared, it should be "Active".
- Assigned to yassrzg
- Status changed to Needs work
9 months ago 7:26am 26 March 2024 - Status changed to Needs review
9 months ago 8:14am 26 March 2024 - Merge request !16Issue #3435933 by yassrzg Introducing dependencies between themes → (Merged) created by yassrzg
- Status changed to Needs work
9 months ago 1:02pm 26 March 2024 - 🇫🇷France pdureau Paris
Hello Yassine,
Thanks for your MR.
You worked on Drupal\ui_skins\HookHandler\PreprocessHtml but it would be better to keep thsi class as simple as possible and add the mechanism to the plugin manager.
Instead of duplicated the values:
$target2 = $plugin_definition2->getComputedTarget(); $key2 = $plugin_definition2->getKey(); $value2 = $plugin_definition2->getValue();
You need to set a recursive call which browse the dependency tree. A theme can have multiple dependencies, and those dependencies can have dependencies.
Also, it seems this is missing:
If a dependency is listed but is not found, let's ignore it, process as usual, and push a warning log message.
- 🇫🇷France Grimreaper France 🇫🇷
Hello,
@yassrzg, a complement of the discussion we had yesterday: the logic of gathering $plugin_definitions recursively should be added in the ui_skins/src/Theme/ThemePluginManager.php and in the interface.
So it can be reused somewhere else.
- Status changed to Needs review
9 months ago 8:03am 2 April 2024 - Assigned to Grimreaper
- Issue was unassigned.
- Status changed to Fixed
6 months ago 10:03am 28 June 2024 -
Grimreaper →
committed 8165979a on 1.1.x
Issue #3435933 by yassrzg, Grimreaper, pdureau: Introducing dependencies...
-
Grimreaper →
committed 8165979a on 1.1.x
-
Grimreaper →
committed 915ff981 on 1.1.x
Issue #3435933 by Grimreaper: Fix tests
-
Grimreaper →
committed 915ff981 on 1.1.x
Automatically closed - issue fixed for 2 weeks with no activity.