Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ArgumentsResolver.php

function 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;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal