Documentation

Action extends Hook
in package

Action Attribute

Table of Contents

__construct()  : mixed
Initialize the attribute.
getName()  : string
Get the hook name.
getPriority()  : int
Get the hook priority.
register()  : bool
Register the callback.

Methods

__construct()

Initialize the attribute.

public __construct(string $name[, int $priority = null ]) : mixed
Parameters
$name : string

The hook name.

$priority : int = null

The hook priority.

Return values
mixed

getName()

Get the hook name.

public getName() : string
Return values
string

The hook name.

getPriority()

Get the hook priority.

public getPriority() : int
Return values
int

The hook priority.

register()

Register the callback.

public register(callable $callback) : bool
Parameters
$callback : callable

The callback to register.

Return values
bool

Always return true.

Search results