Skip to content

Commit 74a0534

Browse files
author
Nikolay Shapovalov
committed
add hook_info
1 parent 3329b89 commit 74a0534

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

tests/Drupal/Attributes/ValidHookNameUnitTest.inc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,11 @@ function module_node_view() {
2020
function module_piratehook_view() {
2121

2222
}
23+
24+
/**
25+
* Implements hook_hook_info().
26+
*/
27+
#[Hook('hook_info')]
28+
function module_hook_info() {
29+
30+
}

tests/Drupal/Attributes/ValidHookNameUnitTest.inc.fixed

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,11 @@ function module_node_view() {
2020
function module_piratehook_view() {
2121

2222
}
23+
24+
/**
25+
* Implements hook_hook_info().
26+
*/
27+
#[Hook('hook_info')]
28+
function module_hook_info() {
29+
30+
}

0 commit comments

Comments
 (0)