Better hook documentation

Created on 15 November 2023, 10 months ago
Updated 23 November 2023, 10 months ago

Problem/Motivation

In the README.md and on the project page, it states "[...] To avoid these conflicts add the following code to your hook_theme_suggestions inside your theme", but that hook actually does not exist and therefore it doesn't work.

Shouldn't that be hook_theme_suggestions_alter?

Also I believe it would be better to provide a complete snippet:

/**
 * Implements hook_theme_suggestions_alter().
 */
function MYTHEME_theme_suggestions_alter(array &$suggestions, array $variables, $hook) {
  if (isset($variables['element']['#gin_lb_form'])) {
    return;
  }
}

Steps to reproduce

N/A

Proposed resolution

Fix the doco for the README.md and main project page.

📌 Task
Status

Fixed

Version

1.0

Component

Documentation

Created by

🇦🇺Australia elgandoz Canberra

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024