Commit 90b1c6aa authored by catch's avatar catch
Browse files

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

By: joachim
By: nexusnovaz
By: jacobupal
(cherry picked from commit 37cd9f7505b47efc32904e1efb49199d5e0ea836)
parent 2b44f3bf
Loading
Loading
Loading
Loading
+3
Changes for core/lib/Drupal/Component/Plugin/LazyPluginCollection.php: 3 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -28,6 +28,9 @@ abstract class LazyPluginCollection implements \IteratorAggregate, \Countable {
   *
   * @param string $instance_id
   *   The ID of the plugin instance to initialize.
   *
   * @throws \Drupal\Component\Plugin\Exception\PluginException
   *   Thrown if the plugin cannot be instantiated.
   */
  abstract protected function initializePlugin($instance_id);