Improve OperationsProviderInterface

Created on 25 December 2014, over 9 years ago
Updated 3 August 2023, 11 months ago

Problem/Motivation

When building administrative UIs, one sometimes needs to provide operation links for plugins. There is currently no consistent or reusable way to achieve this. We have \Drupal\Core\Operations\OperationsProviderInterface, but it is never used anywhere and ideally we would pass on the plugin name to the getter method, like we pass on entities when getting their operation links.

I was under the impression that πŸ“Œ Provide helpful editing links on "admin/structure/block" for deriver blocks (menu, views, block content, etc.) Needs review would introduce this interface, but apparently it was already added somewhere else. That issue can use this, and I already have two contributed modules that will benefit from this improvement.

Proposed resolution

  • Repurpose \Drupal\Core\Operations\OperationsProviderInterface for plugins.
  • Add a default operations provider instantiation mechanism to DefaultPluginManager.

Remaining tasks

None.

User interface changes

None.

API changes

None.

πŸ“Œ Task
Status

Closed: outdated

Version

11.0 πŸ”₯

Component
PluginΒ  β†’

Last updated about 16 hours ago

Created by

πŸ‡¬πŸ‡§United Kingdom Xano Southampton

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.

Production build 0.69.0 2024