function ArgumentsResolver::getArguments

Same name in other branches
  1. 9 core/lib/Drupal/Component/Utility/ArgumentsResolver.php \Drupal\Component\Utility\ArgumentsResolver::getArguments()
  2. 8.9.x core/lib/Drupal/Component/Utility/ArgumentsResolver.php \Drupal\Component\Utility\ArgumentsResolver::getArguments()
  3. 11.x core/lib/Drupal/Component/Utility/ArgumentsResolver.php \Drupal\Component\Utility\ArgumentsResolver::getArguments()

Overrides ArgumentsResolverInterface::getArguments

File

core/lib/Drupal/Component/Utility/ArgumentsResolver.php, line 51

Class

ArgumentsResolver
Resolves the arguments to pass to a callable.

Namespace

Drupal\Component\Utility

Code

public function getArguments(callable $callable) {
    $arguments = [];
    foreach ($this->getReflector($callable)
        ->getParameters() as $parameter) {
        $arguments[] = $this->getArgument($parameter);
    }
    return $arguments;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.