- Issue created by @pdureau
- π«π·France duaelfr Montpellier, France
I'd love some way to hide components in the library but I think it could be wider than only subcomponents.
Some might also be kind of parent elements. For example you could have a generic card component that you want to expand for more specific uses like card_news, card_event or whatever. You could want this generic element to be hidden in the library.If the purpose of this feature is only to hide elements in the library. I think it should be a lot simpler.
My proposal is to add ahidden
property on patterns we don't want to show.We could start by only providing a way to hide them in the library, then we could extend that feature for consumers too. Let's see some examples.
Hide the pattern everywhere (library and consumers):
mypattern: hidden: true
Hide only in the library:
mypattern: hidden: library
Hide in the library and⦠in layouts:
mypattern: hidden: - library - layouts
I believe only hiding in the library can be done in 1.x but extending that to consumers would need to be done in 2.x
What do you think about it? - Assigned to pdureau
- Open on Drupal.org βCore: 10.0.7 + Environment: PHP 8.1 & MySQL 5.7last update
over 1 year ago Not currently mergeable. - @pdureau opened merge request.
- Issue was unassigned.
- Status changed to Postponed
about 1 year ago 12:36pm 23 October 2023 - π«π·France pdureau Paris
Let's move this to 2.x now the development rbanch is open and active.
However, not in the scope of 2.0.0, so let's target 2.1.x