Plugin 'InstagramEmbedCode' does not exist error

Created on 17 January 2018, about 7 years ago
Updated 21 April 2023, almost 2 years ago

Problem/Motivation

I needed to use instagram embeds with the paragraphs module.

To do this

1) I created a instagram media type
2) The display type of of this media type is "Instagram embed"
3) I created a paragraph with this new media type as a field
4) The form display of this media type uses "simple embed form"
5) Display is render entitity

When trying to save a new instagram paragraph in a node i get the error

Drupal\Component\Plugin\Exception\PluginNotFoundException</em>: The &quot;InstagramEmbedCode&quot; plugin does not exist. in <em class="placeholder">

Proposed resolution

Compating the code with other plugins i noticed that the annotations were incorrect

@constraint(

Should be

@Constraint(

in the plugin file src/Plugin/Validation/Constraint/InstagramEmbedCodeConstraint.php

πŸ› Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡³πŸ‡±Netherlands melvinlouwerse

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