Problem/Motivation

i can see the list of hooks here https://git.drupalcode.org/project/h5p/blob/HEAD/h5p.api.php but i dont understand how each one gets triggered and what parameters have to be passed.

are there any online examples of how to use this api in D8 ?

EDIT:
There is no documentation currently in place for the existing hooks. This normally lives in a module.api.php file. This file got removed during the D8 migration but should be added back in for better developer experience and documentation.

Issue fork h5p-3224929

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

dianacastillo created an issue. See original summary.

dianacastillo’s picture

Issue summary: View changes
dianacastillo’s picture

sim_1’s picture

Title: how to implement hooks for h5p d8 » Implement hooks for h5p d8+
Issue summary: View changes
sim_1’s picture

Version: 8.x-1.0-rc19 » 2.0.x-dev
Component: Code » Documentation
sim_1’s picture

Title: Implement hooks for h5p d8+ » Implement hooks for h5p d9+
Category: Support request » Task

sim_1’s picture

Status: Active » Needs review
shaundychko’s picture

Status: Needs review » Reviewed & tested by the community

Thank you very much for this.

  • sim_1 committed e1243af4 on 2.0.x
    Issue #3224929 by sim_1, dianacastillo, shaundychko: Implement hooks for...
sim_1’s picture

Status: Reviewed & tested by the community » Fixed

Merged and marking as fixed! Thanks!

sim_1’s picture

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.