1313// limitations under the License.
1414
1515import { NgModule } from '@angular/core' ;
16+
17+ import { CoreContentLinksDelegate } from '@core/contentlinks/providers/delegate' ;
18+ import { CoreCourseModuleDelegate } from '@core/course/providers/module-delegate' ;
19+
1620import { AddonModH5PActivityComponentsModule } from './components/components.module' ;
1721import { AddonModH5PActivityModuleHandler } from './providers/module-handler' ;
1822import { AddonModH5PActivityProvider } from './providers/h5pactivity' ;
19- import { CoreCourseModuleDelegate } from '@core/course/ providers/module-delegate ' ;
23+ import { AddonModH5PActivityIndexLinkHandler } from './ providers/index-link-handler ' ;
2024
2125// List of providers (without handlers).
2226export const ADDON_MOD_H5P_ACTIVITY_PROVIDERS : any [ ] = [
@@ -32,12 +36,16 @@ export const ADDON_MOD_H5P_ACTIVITY_PROVIDERS: any[] = [
3236 providers : [
3337 AddonModH5PActivityProvider ,
3438 AddonModH5PActivityModuleHandler ,
39+ AddonModH5PActivityIndexLinkHandler ,
3540 ]
3641} )
3742export class AddonModH5PActivityModule {
3843 constructor ( moduleDelegate : CoreCourseModuleDelegate ,
39- moduleHandler : AddonModH5PActivityModuleHandler ) {
44+ moduleHandler : AddonModH5PActivityModuleHandler ,
45+ linksDelegate : CoreContentLinksDelegate ,
46+ indexHandler : AddonModH5PActivityIndexLinkHandler ) {
4047
4148 moduleDelegate . registerHandler ( moduleHandler ) ;
49+ linksDelegate . registerHandler ( indexHandler ) ;
4250 }
4351}
0 commit comments