From dac275ce3a3529494af1b86b803f140a1a55424e Mon Sep 17 00:00:00 2001 From: Alexis Degrugillier Date: Wed, 1 Oct 2025 05:01:31 -0400 Subject: Add support for extension priority (#8038) Extension can now define their hook priority. This will allow to define the order in which hooks are triggered. See #7110 Closes #7110 Changes proposed in this pull request: - Add support for extension priority How to test the feature manually: 1. Create an extension with 2 hooks on the same hook type but different priority 2. The hooks must be prepending the title with different values 3. Validate that changing the hook priority changes the final title accordingly. --- lib/Minz/Hook.php | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 lib/Minz/Hook.php (limited to 'lib/Minz/Hook.php') diff --git a/lib/Minz/Hook.php b/lib/Minz/Hook.php new file mode 100644 index 000000000..cd56de646 --- /dev/null +++ b/lib/Minz/Hook.php @@ -0,0 +1,20 @@ +function; + } + + public function getPriority(): int { + return $this->priority; + } +} -- cgit v1.2.3