Add a getPluginIdsByEntityType() method to src/Plugin/GroupContentEnablerManager

Created on 17 June 2020, over 4 years ago
Updated 10 December 2024, about 2 months ago

Problem/Motivation

The entitygroupfield β†’ module (formerly "gcontent_field" from #2813405: Add a field to view and edit content's groups β†’ ) needs to be able to find the right group content enabler plugin IDs for a given entity type + bundle.

Since this seems like something potentially useful to other Group-related modules, let's add it to Group core instead of doing our own thing in entitygroupfield.

Proposed resolution

Add a getPluginIdsByEntityType() method to the src/Plugin/GroupContentEnablerManagerInterface.php and the src/Plugin/GroupContentEnablerManager.php service ('plugin.manager.group_content_enabler').

Remaining tasks

  1. RTBC.
  2. Commit.

User interface changes

N/A

API changes

Adds a new getPluginIdsByEntityType() method to the src/Plugin/GroupContentEnablerManagerInterface.php and the src/Plugin/GroupContentEnablerManager.php service ('plugin.manager.group_content_enabler').

Data model changes

N/A

Release notes snippet

TBD, probably not.

πŸ“Œ Task
Status

Needs review

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States dww

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 jnicola

    Man would this be useful right about now... i'd even accept something at returns an array of plugins as I could reliably just grab the first!

Production build 0.71.5 2024