MDL-81063 tool_usertours: Allow hooks to manage usertour filters
commitdd94dea8c28525f0fb049e1bb819ab6ae4752a03
authorAndrew Nicols <andrew@nicols.co.uk>
Tue, 27 Feb 2024 04:22:39 +0000 (27 12:22 +0800)
committerAndrew Nicols <andrew@nicols.co.uk>
Wed, 10 Apr 2024 04:41:32 +0000 (10 12:41 +0800)
tree47f535fa79deca2f0bca2549d7e6498d7766d50b
parentdae36f6cfa1511d56a8706e30157ae839dbb1c94
MDL-81063 tool_usertours: Allow hooks to manage usertour filters

Two new hooks are introduced to allow plugins to add their own user tour
filters.

Separate hooks are identified for both clientside, and serverside
filters.
13 files changed:
admin/tool/usertours/amd/build/usertours.min.js
admin/tool/usertours/amd/build/usertours.min.js.map
admin/tool/usertours/amd/src/usertours.js
admin/tool/usertours/classes/helper.php
admin/tool/usertours/classes/hook/before_clientside_filter_fetch.php [new file with mode: 0644]
admin/tool/usertours/classes/hook/before_serverside_filter_fetch.php [new file with mode: 0644]
admin/tool/usertours/tests/fixtures/clientside_filter_for_serverside_hook.php [new file with mode: 0644]
admin/tool/usertours/tests/fixtures/hook_fixtures.php [new file with mode: 0644]
admin/tool/usertours/tests/fixtures/invalid_clientside_hook_fixture.php [new file with mode: 0644]
admin/tool/usertours/tests/fixtures/invalid_serverside_hook_fixture.php [new file with mode: 0644]
admin/tool/usertours/tests/fixtures/serverside_filter_for_clientside_hook.php [new file with mode: 0644]
admin/tool/usertours/tests/helper_test.php
admin/tool/usertours/upgrade.txt