Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hello,
Thanks a lot for your module, I am very happy to integrate components_block
in our ui_patterns
wokflow.
Problem/Motivation
https://www.drupal.org/project/component module should not be a dependency of components_block
.
Components namespaces are only used with ui_patterns
when override patterns behaviour with "use" property, which may not be the general case.
Source: https://ui-patterns.readthedocs.io/en/8.x-1.x/content/patterns-definitio...
For example, in our projects, we don't override with "use" property and components_block
works without the components
module.
Proposed resolution
Remove:
- drupal/components from composer.json
- components:components from component_blocks.info.yml
Comment | File | Size | Author |
---|---|---|---|
#4 | 3159587-4.patch | 354 bytes | nitesh624 |
Comments
Comment #2
nitesh624working on this
Comment #3
pdureau CreditAttribution: pdureau at Smile commentedComment #4
nitesh624Comment #5
nitesh624Comment #7
larowlanthanks
cutting a 1.0.2 release
Comment #8
pdureau CreditAttribution: pdureau at Smile commentedHi Nitesh & Lee,
it seems 3159587-4.patch only remove components:components from component_blocks.info.yml and not drupal/components from composer.json
Is it something missing or a deliberate choice?
Comment #9
larowlan@pdureau there is no composer.json in this project, its handled by the project_composer facade on Drupal.org
Are you saying you can't update?
Comment #11
pdureau CreditAttribution: pdureau at Smile commentedOh sorry, I didn't know about this d.o project_composer facade behaviour. I add the composer.json myself on my own projects.
Comment #12
larowlanYeah https://www.drupal.org/project/project_composer powers https://packages.drupal.org/8/packages.json which is read by composer.
project_composer turns .info.yml files into composer.json metadata automagically 🧚♀️
If you don't require third-party PHP libraries, it's easier to let it do its thing and opt-out of a project level composer.json
Comment #13
larowlanIf updating doesn't resolve, please let me know