As a developer for a Drupal Enterprise website with a custom theme, you can add a link to your site's footer for users to report a website accessibility concern. Visitors can fill out this form to report concerns and optionally leave contact information for follow up. This form is managed by the Office for Digital Accessibility (ODA).
This form does not assist with information on disability parking provided by Parking & Transportation Services or facilities-related accessibility issues which should be directed to the Disability Resources Center.
Before you start
This article applies to sites hosted on the OIT Drupal platform that are not using the default Folwell theme.
If you would like to include the "Report Web Accessibility Issues" link in your site's footer, follow the steps below.
Implementation
The OIT Drupal Modules GitHub account contains a repository for Drupal Enterprise Configurations. Within the Configurations repo, there are two config settings that can be used in templates instead of hardcoding the URL or text.
Config settings
For context, here are the two Drupal Enterprise config settings that are maintained in the OIT Drupal Platform code:
$config['system.site']['accessibility_reporting_script'] $config['system.site']['accessibility_reporting_text']
Using the Drupal Enterprise config settings
- Add the following variables in your theme's {mythemename}.theme file, inside a function called {mythemename}_preprocess_html:
$variables['accessibility_reporting_link'] = \Drupal::config('system.site')->get('accessibility_reporting_script'); $variables['accessibility_reporting_text'] = \Drupal::config('system.site')->get('accessibility_reporting_text');
- Similar to the image below, add an anchor tag in an appropriate place (e.g., umn-footer.html.twig) using the following href attribute and link text:
- href value: {{ accessibility_reporting_link }}
- Link text:
{{ accessibility_reporting_text }}
Additional Resources
Office For Digital Accessibility (ODA)
UMN Accessibility of Digital Content and Information Technology policy