Documentation in ConfigDependencyManager conflates plugin dependencies and config dependencies

Created on 21 October 2014, about 10 years ago
Updated 12 August 2024, 4 months ago

Problem/Motivation

 * Classes for configurable plugins are a special case. They can either declare
 * their configuration dependencies using the calculateDependencies() method
 * described in the paragraph above, or if they have only static dependencies,
 * these can be declared using the 'config_dependencies' annotation key.

This is does not really tell the whole story. The configuration entity has to implement EntityWithPluginCollectionInterface and the plugins can implement ConfigurablePluginInterface. If the config entity implements EntityWithPluginCollectionInterface plugin providers and dependencies declared in the plugin's config_dependencies definition key (this does not have to be an annotation - it can be a derived definition) are added. If the plugin implements ConfigurablePluginInterface then each plugin instance's calculateDependencies() method is called.

Steps to reproduce

Proposed resolution

See #4

Remaining tasks

Review
Commit

User interface changes

API changes

Data model changes

Release notes snippet

🐛 Bug report
Status

Fixed

Version

10.3

Component
Documentation 

Last updated 1 day ago

No maintainer
Created by

🇬🇧United Kingdom alexpott 🇪🇺🌍

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

Merge Requests

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