Fix plugin IDs not sanitized for valid Drupal machine names
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3571341. --> Reported by: [joevagyok](https://www.drupal.org/user/2876343) >>> <h3>Problem</h3> <p>When generating machine name suggestions from plugin IDs, the resulting names could contain invalid characters that are not allowed in Drupal machine names.</p> <h3>Root Cause</h3> <p>Plugin IDs were being used directly without sanitization when creating suggested machine names for node types.</p> <h3>Solution</h3> <p>Added sanitization logic to convert plugin IDs into valid Drupal machine names by replacing invalid characters and ensuring compliance with machine name requirements.</p> <h3>Impact</h3> <ul> <li>Node type creation works correctly with all plugin IDs</li> <li>No more validation errors when creating node types from plugins with special characters</li> </ul>
issue