1.3.1. Create Plugin Type Definition
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3538812. --> Reported by: [d34dman](https://www.drupal.org/user/751698) >>> <ul> <li>In <strong>flowdrop</strong> module, create a new plugin type <code>FlowDropNodeProcessor</code>.</li> <li>Define interface <code>FlowDropNodeProcessorInterface</code> with methods: <ul> <li>&lt;<del>process(array $context): array &ndash; Core execution method for node logic.</del></li> <li><del>getInputPorts(): array &ndash; Defines accepted input connections.</del></li> <li><del>getOutputPorts(): array &ndash; Defines available output connections.</del></li> </ul> </li> <li>Use <code>@FlowDropNodeProcessor</code> attribute for discovery, allowing PHP 8+ attribute-based plugin registration.</li> <li>Leverage Drupal&rsquo;s <code>DefaultPluginManager</code> and <code>AnnotatedClassDiscovery</code> pattern.</li> </ul>
issue