Sets a push handler that will be called when an item is pushed onto the stack of open elements.
Description
The function will be called with the pushed item as its argument.
Parameters
$handlerClosurerequired- The handler function.
Source
public function set_push_handler( Closure $handler ): void {
$this->push_handler = $handler;
}
Changelog
| Version | Description |
|---|---|
| 6.6.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.