As a themer I would like to define my own Modifier plugins and include them in the theme and define YAML for them. Modifiers should be able to discover these plugins.
See this article
https://www.drupal.org/docs/8/api/plugin-api/creating-a-plugin-that-can-...
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | modifiers-discover_theme_modifiers-2934388-2.patch | 2.97 KB | kyberman |
Comments
Comment #2
kybermanCreated patch to solve this problem.
You can now place plugins into theme and specify them by YAML definition.
Example - I have "my_theme" and want to add "test_modifier":
- Create "TestModifier" class inside "my_theme/src/Plugin/modifiers" folder.
- Create "my_theme/my_theme.modifiers.yml" file with this content:
Comment #4
kybermanNew release will be created soon.