Categorize plugins & add dependencies on modules

Created on 12 June 2018, almost 7 years ago
Updated 29 April 2025, 16 days ago

Problem/Motivation

There's no way to group plugins to split the one-page styleguide
To provide more plugins for configurable SG each plugin should be able to check that required modules enabled

Proposed resolution

Define groups/categories to use in annotation like field types do \Drupal\Core\Field\FieldTypePluginManager::processDefinition() (Default category is "General")
Add route to display plugin's render by category

Remaining tasks

- Decide on group naming
- figure out route & navigation
- create patch & commit

User interface changes

tbd

API changes

\Drupal\styleguide\StyleguidePluginManager should implement \Drupal\Component\Plugin\CategorizingPluginManagerInterface

Data model changes

No

✨ Feature request
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡«πŸ‡·France andypost

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States dcam

    I've been thinking about doing this since yesterday without realizing there was an existing issue. So I'm updating the branch to make it happen.

Production build 0.71.5 2024