You are here

public function StateWrapper::__call in Devel 8

Same name and namespace in other branches
  1. 8.3 webprofiler/src/State/StateWrapper.php \Drupal\webprofiler\State\StateWrapper::__call()
  2. 8.2 webprofiler/src/State/StateWrapper.php \Drupal\webprofiler\State\StateWrapper::__call()
  3. 4.x webprofiler/src/State/StateWrapper.php \Drupal\webprofiler\State\StateWrapper::__call()

Passes through all non-tracked calls onto the decorated object.

Parameters

string $method: The called method.

mixed $args: The passed in arguments.

Return value

mixed The return argument of the call.

File

webprofiler/src/State/StateWrapper.php, line 121

Class

StateWrapper
Class StateWrapper.

Namespace

Drupal\webprofiler\State

Code

public function __call($method, $args) {
  return call_user_func_array([
    $this->state,
    $method,
  ], $args);
}