Problem/Motivation
The latest release of the USWDS Drupal theme (v2.1) introduced a bug in their code when renders the primary and secondary menus. A check is being made for `property_exists` when `method_exists` was intended.
Steps to reproduce
Create a block menu and add it to a region. Observe that the `block__system_menu_block__[region]` theme hook is not applied to that block.
Proposed resolution
In the `uswds/includes/menus.inc` file, in the `uswds_theme_suggestions_block_alter()` function, update the check for the `getRegion` property to a check for a method.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 3224041-1-fix-typo-from-3174443-fix.patch | 541 bytes | emanaton |
Comments
Comment #2
emanaton commentedChange call from `property_exists` to `method_exists`.
Comment #4
jrglasgow commentedI apparently forgot to mark this as fixed when it was committed