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 in t()
  • 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

scontzen created an issue. See original summary.

avpaderno’s picture

Title: [1.0.x] Accessibility Statement [D10], [D11] » [1.0.x] Accessibility Statement
Issue summary: View changes

Thank 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.

  • If you have not done it yet, you should enable GitLab CI for the project and fix the PHP_CodeSniffer errors/warnings it reports.
  • For the time this application is open, only your commits are allowed.
  • The purpose of this application is giving you a new drupal.org role that allows you to opt projects into security advisory coverage, either projects you already created, or projects you will create. The project status will not be changed by this application; once this application is closed, you will be able to change the project status from Not covered to Opt into security advisory coverage. This is possible only 14 days after the project is created.

    Keep in mind that once the project is opted into security advisory coverage, only Security Team members may change coverage.
  • Only the person who created the application will get the permission to opt projects into security advisory coverage. No other person will get the same permission from the same application; that applies also to co-maintainers/maintainers of the project used for the application.
  • We only accept an application per user. If you change your mind about the project to use for this application, or it is necessary to use a different project for the application, please update the issue summary with the link to the correct project and the issue title with the project name and the branch to review.

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.

  • It is preferable to wait for a project moderator before posting the first comment on newly created applications. Project moderators will do some preliminary checks that are necessary before any change on the project files is suggested.
  • Reviewers should show the output of a CLI tool only once per application.
  • It may be best to have the applicant fix things before further review.

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.

vishal.kadam’s picture

Issue summary: View changes
vishal.kadam’s picture

Status: Needs review » Needs work

1. 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.

/**
 * @file
 * Primary module hooks for Accessibility Statement module.
 */

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.

    $form['image_toolkit'] = [
      '#type' => 'radios',
      '#title' => $this->t('Select an image processing toolkit'),
      '#config_target' => 'system.image:toolkit',
      '#options' => [],
    ];

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.

scontzen’s picture

Status: Needs work » Needs review

Thank you for the quick review!

All three findings addressed:

  1. Hooks converted to OO with #[LegacyHook] backward compatibility for D10.3.
    Docblock fixed.
  2. drupal/core require removed from composer.json.
  3. 22 form elements converted to #config_target. page_path remains manual because it triggers a route rebuild on change.
    non_accessible_items (AJAX repeatable fieldset) also requires manual handling.

Also added langcode to the config schema (required for translatable fields) and changed optional URL fields from type: uri to type: string (empty strings are not valid URIs).

Pipeline green. Setting to Needs review.

vishal.kadam’s picture

Rest 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.

scontzen’s picture

Issue summary: View changes
Issue tags: +PAreview: review bonus