LazyPluginCollection::initializePlugin() doesn't document it can throw exceptions

Created on 16 July 2025, about 14 hours ago

Problem/Motivation

Various implementations of this throw exceptions. E.g.

DefaultLazyPluginCollection (although see 🐛 DefaultLazyPluginCollection::initializePlugin() throws the wrong sort of exception Active ):

      throw new PluginNotFoundException($instance_id);

BlockPluginCollection:

      throw new PluginException("The block '{$this->blockId}' did not specify a plugin.");

Steps to reproduce

Proposed resolution

Add a @throws tag to the docs.

Remaining tasks

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

🐛 Bug report
Status

Active

Version

11.0 🔥

Component

documentation

Created by

🇬🇧United Kingdom joachim

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

    It would make a good project for someone who is new to the Drupal contribution process. It's preferred over Newbie.

Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024