You are here

public function Acquiadam::__call in Media: Acquia DAM 8

Passes method calls through to the DAM client object.

Parameters

string $name: The name of the method to call.

array $arguments: An array of arguments.

Return value

mixed Returns whatever the dam client returns.

Overrides AcquiadamInterface::__call

File

src/Acquiadam.php, line 67

Class

Acquiadam
Class Acquiadam.

Namespace

Drupal\media_acquiadam

Code

public function __call($name, array $arguments) {
  $method_variable = [
    $this->acquiaDamClient,
    $name,
  ];
  return is_callable($method_variable) ? call_user_func_array($method_variable, $arguments) : NULL;
}