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.
This would be handy for making something like a "theme previewer," and probably something that user/#/edit and OG module could use as well.
Comments
Comment #1
LAsan CreditAttribution: LAsan commentedMoving to cvs.
Comment #2
effulgentsia CreditAttribution: effulgentsia commented@webchick: please revert this to D7 if you think it's not out of scope. Otherwise, I'm guessing even a non-breaking API addition is out of scope for D7 without a sufficiently compelling use-case.
It's not hard for a module to achieve the desired functionality with:
array_filter(list_themes(), 'drupal_theme_access')
But it would also be a pretty simple patch if you think it's worth getting into D7.
Comment #3
jhedstromComment #4
joelpittet\Drupal::service('theme_handler')->listInfo()
Comment #5
dawehnerYeah I really don't think we need this.
Comment #6
joelpittetSomeone who thinks this is useful then can reopen or open a new one with a stronger case. Setting the status to reflect better the decision as this wasn't added.