Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue#304: Detect all theme patterns. #318

Closed

Conversation

kp77
Copy link

@kp77 kp77 commented Dec 9, 2020

This PR attempts to solve multiple issues originating from the \Drupal\ui_patterns_library\Plugin\Deriver\LibraryDeriver::getDirectories method collecting only the default theme and the base theme directories.

Besides the issues described in #304 and #308, I also had errors during site install with existing config, when using patterns in layout builder, because during install the default theme is stark.

This PR is a follow up to PRs #305 and #310 and uses the method suggested here: #304 (comment)

@vever001
Copy link

vever001 commented Dec 9, 2020

+1 on this!
Thanks @kp77 this is IMO the proper fix.

@geek-andi
Copy link

This just solved our problem with patterns not showing up in a multi-domain setup, where we use a different theme for each domain:

Our steps to reproduce

(We only use patterns on domain 2)

  • drush cr
  • Visit domain 1
  • domain 2 patterns are broken
  • drush cr
  • Visit domain 2
  • domain 2 patterns are NOT broken

Oddly, once we deinstall ui_patterns_library, the patterns will never show up.

@mika2na
Copy link

mika2na commented Sep 23, 2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants