You are here

public function StaticDiscoveryDecorator::__call in Service Container 7.2

Same name and namespace in other branches
  1. 7 lib/Drupal/Component/Plugin/Discovery/StaticDiscoveryDecorator.php \Drupal\Component\Plugin\Discovery\StaticDiscoveryDecorator::__call()

Passes through all unknown calls onto the decorated object

File

lib/Drupal/Component/Plugin/Discovery/StaticDiscoveryDecorator.php, line 68
Contains \Drupal\Component\Plugin\Discovery\StaticDiscoveryDecorator.

Class

StaticDiscoveryDecorator
A decorator that allows manual registration of undiscoverable definitions.

Namespace

Drupal\Component\Plugin\Discovery

Code

public function __call($method, $args) {
  return call_user_func_array(array(
    $this->decorated,
    $method,
  ), $args);
}