. namespace test_plugin\hook; /** * Fixture for testing of hooks. * * @package core * @author Petr Skoda * @copyright 2022 Open LMS * @license https://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ final class hook implements \core\hook\described_hook, \core\hook\deprecated_callback_replacement { /** * Hook description. */ public static function get_hook_description(): string { return 'Test hook 1.'; } /** * Deprecation info. */ public static function get_deprecated_plugin_callbacks(): array { return ['oldcallback']; } /** * List of tags that describe this hook. * * @return string[] */ public static function get_hook_tags(): array { return ['test']; } }