Update typing for plugin definition to include object

Created on 27 January 2024, 10 months ago
Updated 25 March 2024, 8 months ago

Problem/Motivation

As of #2852656 β†’ , plugins can have object-based definitions. However the typing in the docblocks is set only to array for the $pluginDefinition property of core/lib/Drupal/Component/Plugin/PluginBase.php and the return value of getPluginDefinition in core/lib/Drupal/Component/Plugin/PluginInspectionInterface.php.

Proposed resolution

These docblocks should be updated from array to \Drupal\Component\Plugin\Definition\PluginDefinitionInterface|array.

πŸ› Bug report
Status

Fixed

Version

10.2 ✨

Component
PluginΒ  β†’

Last updated 7 days ago

Created by

πŸ‡ΊπŸ‡ΈUnited States jayhuskins

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024