Drupal Enterprise: Adding the "Report Web Disability-Related Issue" Link to a Footer

As a site administrator or developer for a Drupal Enterprise website, you can add a link to your site's footer for users to report a website accessibility concern. Visitors can fill out this dynamic form to report concerns and optionally leave contact information for followup.

The current page URL will be included as a URL argument as the visitor is redirected to the form. Once submitted, a ticket is automatically created with all information the visitor included. To the best of their ability, OIT Drupal Support Staff will attempt to direct the ticket to the responsible web team for the site.  

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

If your site does not use the OIT Drupal Platform Code, this article may not apply to your site.

If your site uses the Folwell, UMN Cog or Bootstrap theme in Drupal, the link ("Report Web Disability-Related Issue") will already be implemented in your site's footer so this article may not apply to your site. 

If you would like to include the "Report Web Disability-Related Issue" link in your site's footer, follow the steps in the appropriate section below. 

Drupal Enterprise

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

  1. 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') . "?ref_url=$current_page_url"

    $variables['accessibility_reporting_text'] = \Drupal::config('system.site')->get('accessibility_reporting_text');

  2. 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:
    1. href value: {{ accessibility_reporting_link }}
    2. Link text:
      {{ accessibility_reporting_text }}
      Drupal 8 HTML anchor-tag with the specified HREF and link text.

 

Additional Information

Accessibility at UMN ("Accessible U")

Audit Website Accessibility

UMN Information Technology Accessibility Policy

 

 

Last modified

Changed

TDX ID

TDX ID
3695