Let's look at the following plugin:
/*
* Defines a fallback plugin for missing block plugins.
*
* @Block(
* id = "broken",
* admin_label = @Translation("Broken/Missing"),
* category = @Translation("Block"),
* )
*/
class Broken extends BlockBase {
Where is the problem? Its hard to spot ... ... Its a missing asterics on the first line.
Somehow protect against this stupid but insane hard to debug problem.
One approach could be to add some check in \Drupal\Component\Annotation\Plugin\Discovery\AnnotatedClassDiscovery::getDefinitions
Closed: outdated
11.0 🔥
Enhances developer experience.
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.