Problem/Motivation

The module machine name is node_access_by_field_role, but the settings form, schema, runtime access hook, and route name use node_access_by_field.settings.

This is inconsistent with the Drupal.org project/module machine name and appears to come from the same namespace mismatch as the install fatal. It can create confusing configuration ownership and makes the module look like it belongs to a different project/machine name.

Steps to reproduce

1. Install Drupal 11.4.
2. Go to the module settings page.
3. Save any setting.
4. Inspect active configuration.

Actual result

The module saves settings under node_access_by_field.settings.

Expected result

The module should use a config object name matching its machine name, for example node_access_by_field_role.settings.

Proposed resolution

Rename the config object, route names, and runtime references to match the module machine name.

Suggested target:
- node_access_by_field_role.settings
- node_access_by_field_role.settings route name

Remaining tasks

Add configure key in node_access_by_field_role.info.yml file.

Example:
configure: node_access_by_field_role.settings

Comments

dkmishra created an issue. See original summary.

kate_raquel’s picture

Status: Active » Fixed

Fixed in release 1.0.2. The configuration object and schema have been renamed to node_access_by_field_role.settings, the settings route to node_access_by_field_role.settings, the module hooks to node_access_by_field_role_*, and the configure link was added to node_access_by_field_role.info.yml. Thanks!

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.