Adding CreativeWork type

Created on 13 September 2024, 3 months ago

Hello,

I added a CreativeWork Schema.org class type by adding a module called `schema_creativework`.
This module is an adaptation of the sub module `schema_article` that is inside of the module `schema_metatag`.
The new module `schema_creativework` only works if it is placed inside the module `schema_metatag`.
However, I want to install it outside the module `schema_metatag` but I got this error

Drupal\Component\Plugin\Exception\PluginException: Plugin (schema_creativework_type) instance class "Drupal\schema_creativework\Plugin\metatag\Tag\SchemaCreativeWorkType" does not exist. in Drupal\Component\Plugin\Factory\DefaultFactory::getPluginClass() (line 97 of core/lib/Drupal/Component/Plugin/Factory/DefaultFactory.php).

Drupal\Core\Plugin\Factory\ContainerFactory->createInstance() (Line: 83)

I have reviewed all the class paths in the new module and they are fine. So, I do not understand why it is required to put the module inside the module `schema_metatag`.

The source code is here

https://git.drupalcode.org/sandbox/asanchez75-3474275

Any help would be appreciated.

Best,

🐛 Bug report
Status

Active

Version

2.6

Component

Code

Created by

🇫🇷France asanchez75

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

Comments & Activities

Production build 0.71.5 2024