Install
Works with Drupal: ^10.3 || ^11Using Composer to manage Drupal site dependencies
Alternative installation files
Release notes
Fixed issues
1. core_version_requirement: ^10 || ^11 — must be ^10.3 || ^11
2. Missing package key
src/Form/FixAnonymousNodes.php
3. Missing declare(strict_types=1)
4. getFormId() missing return type : string
5. buildForm() missing return type : array
6. submitForm() missing return type : void
7. Database::getConnection() — static call; should inject Connection via
constructor
8. User::load($target_uid) — static entity call; should use
EntityTypeManagerInterface
9. Node::load($nid) — static entity call; should use
EntityTypeManagerInterface
10. use Drupal\Core\Database\Database — can be removed once Connection is
injected directly
11. Class name FixAnonymousNodes should be FixAnonymousNodesForm (Drupal
convention for form classes)
Missing files
12. fix_anonymous_nodes.module — required even if minimal (needed for
declare(strict_types=1) + @file)
13. composer.json — missing
14. .gitignore — missing
15. .cspell.json — missing
16. .gitlab-ci.yml — missing
17. config/schema/fix_anonymous_nodes.schema.yml — missing (no config, so
minimal/empty schema or skip)