Missing implementation of abstract PluginFormTrait::getPluginId()

Created on 23 July 2024, about 2 months ago
Updated 24 July 2024, about 2 months ago

Problem/Motivation

\Drupal\eca\Plugin\ECA\PluginFormTrait has an abstract function getPluginId(). The trait is used, and the function is implemented e.g. in \Drupal\eca\Service::Actions, but it is not implemented in any class that extends \Drupal\eca\Plugin\ECA\Event\EventBase (e.g. \Drupal\eca_log\Plugin\ECA\Event\LogEvent) or in many classes that use PluginFormTrait directly.

🐛 Bug report
Status

Closed: works as designed

Version

2.1

Component

Code

Created by

🇨🇭Switzerland boromino

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

Comments & Activities

  • Issue created by @boromino
  • 🇩🇪Germany jurgenhaas Gottmadingen

    That method is implemented in \Drupal\Component\Plugin\PluginBase::getPluginId which all plugins extend. So that method should be available. Static code analysis doesn't complain about that missing method, either.

    Is there any scenario where you can reproduce that this is causing an exception?

  • Status changed to Closed: works as designed about 2 months ago
  • 🇨🇭Switzerland boromino

    You are right, I overlooked that.

Production build 0.71.5 2024