function ThemeSuggestionHooks::form
Same name in this branch
- main core/themes/admin/src/Hook/ThemeSuggestionHooks.php \Drupal\admin\Hook\ThemeSuggestionHooks::form()
Same name and namespace in other branches
- 11.x core/themes/admin/src/Hook/ThemeSuggestionHooks.php \Drupal\admin\Hook\ThemeSuggestionHooks::form()
- 11.x core/themes/default_admin/src/Hook/ThemeSuggestionHooks.php \Drupal\default_admin\Hook\ThemeSuggestionHooks::form()
Implements hook_theme_suggestions_HOOK_alter() for form.
Attributes
#[Hook('theme_suggestions_form_alter')]
File
-
core/
themes/ default_admin/ src/ Hook/ ThemeSuggestionHooks.php, line 42
Class
- ThemeSuggestionHooks
- Provides theme suggestion hook implementations.
Namespace
Drupal\default_admin\HookCode
public function form(array &$suggestions, array $variables) : void {
$suggestions[] = 'form__' . str_replace('-', '_', $variables['element']['#id']);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.