You are here

public function HookStubProxy::on in Authenticated User Page Caching (Authcache) 7.2

Enable recording of invocations.

Parameters

any $return: The result which should be returned when the hook is invoked.

Return value

HookStubProxy A proxy object representing the stubbed hook.

File

tests/HookStub.inc, line 68
Defines some helper classes for stubbing and recording hook invocations.

Class

HookStubProxy
(Internal) helper class representing a stub-hook.

Code

public function on($return = NULL) {
  return HookStub::on($this->hookname, $return);
}