MIDDAG for Moodle

hook_manager extends facade

Facade for local_middag\framework\application\manager\hook_manager.

Tags
see
hook_manager
mixin

Table of Contents

Methods

add_action()  : void
add_filter()  : void
apply_filters()  : mixed
do_action()  : void
get_facade_accessor()  : string
Return the service accessor key for this facade.
has_action()  : bool
reset()  : void

Methods

add_action()

public static add_action(string $tag, callable $function[, int $priority = = '10' ][, int $args = = '1' ]) : void
Parameters
$tag : string
$function : callable
$priority : int = = '10'
$args : int = = '1'

add_filter()

public static add_filter(string $tag, callable $function[, int $priority = = '10' ][, int $args = = '1' ]) : void
Parameters
$tag : string
$function : callable
$priority : int = = '10'
$args : int = = '1'

apply_filters()

public static apply_filters(string $tag, mixed $value, mixed $args) : mixed
Parameters
$tag : string
$value : mixed
$args : mixed

do_action()

public static do_action(string $tag, mixed $args) : void
Parameters
$tag : string
$args : mixed

get_facade_accessor()

Return the service accessor key for this facade.

public static get_facade_accessor() : string
Return values
string

has_action()

public static has_action(string $tag) : bool
Parameters
$tag : string
Return values
bool

        
On this page

Search results