Hook handling was re-conceived from MediaWiki 1.35, as documented here: https://www.mediawiki.org/wiki/Manual:Hooks#Handling_hooks_in_MediaWiki_1.35_and_later
Most hook handlers in SecurePoll still use the old style and should be updated.
The handler for the hook SpecialPage_initList is an example of how to use the new infrastructure.