nuvoleweb / ui_patterns

[NOTE] Development has moved to https://drupal.org/project/ui_patterns
https://drupal.org/project/ui_patterns
GNU General Public License v2.0
85 stars 56 forks source link

Not compatible with drupal/components v2 #333

Open hugronaphor opened 2 years ago

hugronaphor commented 2 years ago

Starting with V2 of drupal/components there is a new way to define namespaces.

By doing the required changes twig's pattern() function isn't working anymore as it can't find the template. Error example:

Drupal\Component\Plugin\Exception\PluginNotFoundException: The "hero" plugin does not exist. Valid plugin IDs for Drupal\ui_patterns\UiPatternsManager are: in Drupal\Core\Plugin\DefaultPluginManager->doGetDefinition() (line 53 of core/lib/Drupal/Component/Plugin/Discovery/DiscoveryTrait.php).

See change docs: https://www.drupal.org/docs/contributed-modules/components/upgrade-guide-1x-to-2x#s-non-breaking-changes

johnjw59 commented 2 years ago

This is actually being resolved in drupal/components: https://www.drupal.org/project/components/issues/3107993