function ArgumentsResolver::getArguments
Same name in other branches
- 9 core/lib/Drupal/Component/Utility/ArgumentsResolver.php \Drupal\Component\Utility\ArgumentsResolver::getArguments()
- 10 core/lib/Drupal/Component/Utility/ArgumentsResolver.php \Drupal\Component\Utility\ArgumentsResolver::getArguments()
- 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\UtilityCode
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.