The module provides a structured, config-driven accessibility statement page for Drupal sites. Supports public sector bodies (EU Directive 2016/2102 / BITV 2.0) and private sector products/services (European Accessibility Act 2019/882 / BFSG).
Security considerations
- All user input sanitized via Twig auto-escaping and
@placeholders int() - CSRF protection via Form API
- Own permission with
restrict access: true - Page path validated with regex (no injection vectors)
- Phone numbers sanitized for
tel:URIs (digits and + only) - No database queries, no third-party libraries
Code quality
- GitLab CI pipeline passing (phpcs, ESLint, Prettier, cspell, PHPUnit)
- phpcs Drupal + DrupalPractice: 0 errors, 0 warnings
- 10 tests (3 Kernel + 7 Functional), 108 assertions
- PHP 8.4 compatible, no deprecations
- Drupal 10.3 and 11 supported
Similar projects
There is currently no Drupal module that generates a structured, schema-validated accessibility statement from configuration. Existing solutions rely on free-text nodes, which lack structure, cannot enforce completeness of legally required sections, and are hard to keep consistent across sites.
Project link
https://www.drupal.org/project/accessibility_statement
Manual reviews of other projects
#3575215: [1.0.x] Form Layout
#3513442: [1.0.x] Media Default Image
#3566474: [1.0.x] Auto Taxonomy Menu
Comments
Comment #2
avpadernoThank you for applying!
Please read Review process for security advisory coverage: What to expect for more details and Security advisory coverage application checklist to understand what reviewers look for. Tips for ensuring a smooth review gives some hints for a smoother review.
The important notes are the following.
Keep in mind that once the project is opted into security advisory coverage, only Security Team members may change coverage.
To the reviewers
Please read How to review security advisory coverage applications, Application workflow, What to cover in an application review, and Tools to use for reviews.
The important notes are the following.
For new reviewers, I would also suggest to first read In which way the issue queue for coverage applications is different from other project queues.
Comment #3
vishal.kadamComment #4
vishal.kadam1. FILE: accessibility_statement.module
A new module that aims to be compatible with latest Drupal releases is expected to implement hooks as class methods as described in Support for object oriented hook implementations using autowired services.
Drupal does not have primary and secondary hooks. Instead of that, it is preferable to use the usual description: “Hook implementations for the [module name] module”, where [module name] is the name of the module given in its .info.yml file.
2. FILE: composer.json
There is no need to add the required Drupal version, since that is already added by the Drupal.org Composer façade.
3. FILE: src/Form/AccessibilityStatementForm.php
With Drupal 10 and Drupal 11, there is no longer need to use #default_value for each form element, when the parent class is ConfigFormBase: It is sufficient to use #config_target, as in the following code.
Using that code, it is no longer needed to save the configuration values in the form submission handler: The parent class will take care of that.
Comment #5
scontzen commentedThank you for the quick review!
All three findings addressed:
#[LegacyHook]backward compatibility for D10.3.Docblock fixed.
drupal/corerequire removed from composer.json.#config_target.page_pathremains manual because it triggers a route rebuild on change.non_accessible_items(AJAX repeatable fieldset) also requires manual handling.Also added
langcodeto the config schema (required for translatable fields) and changed optional URL fields fromtype: uritotype: string(empty strings are not valid URIs).Pipeline green. Setting to Needs review.
Comment #6
vishal.kadamRest seems fine to me.
Please wait for other reviewers and Project Moderator to take a look and if everything goes fine, you will get the role.
Comment #7
scontzen commented