Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
drupal
Merge requests
!12754
Step 1: Test current behavior with non-unique alter types
Code
Review changes
Check out branch
Open in Workspace
Download
Patches
Plain diff
Expand sidebar
Open
Step 1: Test current behavior with non-unique alter types
issue/drupal-3533944:3533944-alter-non-unique-current-behavior
into
11.x
Overview
1
Commits
5
Pipelines
6
Changes
6
Open
Step 1: Test current behavior with non-unique alter types
Andreas Hennings
requested to merge
issue/drupal-3533944:3533944-alter-non-unique-current-behavior
into
11.x
3 weeks ago
Overview
1
Commits
5
Pipelines
6
Changes
6
0
0
Merge request reports
Compare
11.x
version 5
569ef79b
3 weeks ago
version 4
8a421e62
3 weeks ago
version 3
9694828d
3 weeks ago
version 2
aee43a89
3 weeks ago
version 1
b2a49be1
3 weeks ago
11.x (HEAD)
and
latest version
latest version
3531692c
5 commits,
3 weeks ago
version 5
569ef79b
3 commits,
3 weeks ago
version 4
8a421e62
3 commits,
3 weeks ago
version 3
9694828d
3 commits,
3 weeks ago
version 2
aee43a89
2 commits,
3 weeks ago
version 1
b2a49be1
2 commits,
3 weeks ago
6 files
+
419
−
8
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
6
core/modules/system/tests/modules/HookOrder/aaa_hook_order_test/src/Hook/AAlterHooks.php
+
32
−
0
View file @ 782970a3
Edit in single-file editor
Open in Web IDE
Show full file
@@ -5,6 +5,8 @@
namespace
Drupal\aaa_hook_order_test\Hook
;
use
Drupal\Core\Hook\Attribute\Hook
;
use
Drupal\Core\Hook\Attribute\ReorderHook
;
use
Drupal\Core\Hook\Order\Order
;
use
Drupal\Core\Hook\Order\OrderAfter
;
/**
@@ -26,4 +28,34 @@ public function testSubtypeAlter(array &$calls): void {
$calls
[]
=
__METHOD__
;
}
#[Hook('test_tomato_alter')]
#[Hook('test_tomato_alter')]
public
function
testTomatoTomatoAlter
(
array
&
$calls
):
void
{
$calls
[]
=
__METHOD__
;
}
#[Hook('test_apple_alter')]
#[Hook('test_orange_alter')]
public
function
testAppleOrangeAlter
(
array
&
$calls
):
void
{
$calls
[]
=
__METHOD__
;
}
#[Hook('test_moth_alter')]
#[Hook('test_butterfly_alter', module: 'bbb_hook_order_test')]
public
function
testMothButterflyAlter
(
array
&
$calls
):
void
{
$calls
[]
=
__METHOD__
;
}
#[ReorderHook('test_summer_alter', self::class, 'testSummerAlter', Order::Last)]
#[ReorderHook('test_winter_alter', self::class, 'testWinterAlter', Order::Last)]
#[Hook('test_summer_alter')]
public
function
testSummerAlter
(
array
&
$calls
):
void
{
$calls
[]
=
__METHOD__
;
}
#[Hook('test_winter_alter')]
public
function
testWinterAlter
(
array
&
$calls
):
void
{
$calls
[]
=
__METHOD__
;
}
}
Loading