Translations:Manual:Hooks/8/en

In this example from the  function in WikiPage.php, doEditContent calls Hooks::run to run the PageContentSaveComplete hook, passing $hook_args as argument: