PluginNotFoundException for codemirror fields (patch attached)

Created on 14 May 2019, over 5 years ago
Updated 29 May 2023, over 1 year ago

Error message:

Drupal\Component\Plugin\Exception\PluginNotFoundException: The "hidden" plugin does not exist. Valid plugin IDs for Drupal\Core\Field\WidgetPluginManager are: codemirror_field_widget_default, 

... (list of widget ids) ...

in Drupal\Core\Plugin\DefaultPluginManager->doGetDefinition() (line 53 of C:\path\to\site\web\core\lib\Drupal\Component\Plugin\Discovery\DiscoveryTrait.php).

This is on a Codemirror field I had created, and to fix, I just needed to include "codemirror" fields in the @FieldWidget in src/Plugin/Field/FieldWidget/CodemirrorWidget.php, like so:

/**
 * Plugin implementation of the 'codemirror_field_widget_default' widget.
 *
 * @FieldWidget(
 *   id = "codemirror_field_widget_default",
 *   label = @Translation("Codemirror"),
 *   field_types = {
 *     "text_long",
 *     "codemirror"
 *   }
 * )
 */

I have attached a path - thanks for the great module!

πŸ› Bug report
Status

Closed: outdated

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States laboratory.mike

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.71.5 2024