[policy, no patch] Standardize on src/Plugin/$vendor/$pluginType for plugin directories

Created on 1 March 2015, about 10 years ago
Updated 22 April 2025, 18 days ago

Problem/Motivation

Most plugin types that are discovered through class annotations live in ./src/Plugin/$vendor/$pluginType directories within modules. Some live in directories that do not have those two variable components, such as actions which live in ./src/Plugin/Action. This is not a bug, but it does prevent us from adding more plugin types to the action vendor in the future.

Proposed resolution

Document that ./src/Plugin/$vendor/$pluginType is the preferred (but not required) location for non-core plugins to preserve forwards compatibility.

Remaining tasks

  • Decide whether this change will be accepted for Drupal 8.
  • List the plugin types that do not conform to this standard.
  • Perform the conversions.

User interface changes

None.

API changes

None, but modules may have to move plugins to a different namespace/directory.

📌 Task
Status

Closed: outdated

Version

11.0 🔥

Component

plugin system

Created by

🇬🇧United Kingdom Xano Southampton

Live updates comments and jobs are added and updated live.
  • Documentation

    Primarily changes documentation, not code. For Drupal core issues, select the Documentation component instead of using this tag. In general, component selection is preferred over tag selection.

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.

Production build 0.71.5 2024