public function HookStubProxy::__construct in Authenticated User Page Caching (Authcache) 7.2
Construct new stubbed hook.
Note: Do not instantiate hook proxies directly but use StubModule::hook().
Parameters
string $hookname: The fully qualified function name (including module prefix).
File
- tests/
HookStub.inc, line 55 - Defines some helper classes for stubbing and recording hook invocations.
Class
- HookStubProxy
- (Internal) helper class representing a stub-hook.
Code
public function __construct($hookname) {
$this->hookname = $hookname;
}