hookContainer = $hookContainer; } /** * @inheritDoc */ public function onDiscussionToolsTermsOfUseMessages( array &$messages, MessageLocalizer $context, Config $config ) { return $this->hookContainer->run( 'DiscussionToolsTermsOfUseMessages', [ &$messages, $context, $config ] ); } /** @inheritDoc */ public function onDiscussionToolsAddOverflowMenuItems( array &$overflowMenuItems, array &$resourceLoaderModules, bool $isSectionEditable, array $threadItemData, IContextSource $contextSource ) { return $this->hookContainer->run( 'DiscussionToolsAddOverflowMenuItems', [ &$overflowMenuItems, &$resourceLoaderModules, $isSectionEditable, $threadItemData, $contextSource, ] ); } }