public function ControllerResolverInterface::getArguments

Returns the arguments to pass to the controller.

@api

Parameters

Request $request A Request instance:

mixed $controller A PHP callable:

Return value

array An array of arguments to pass to the controller

Throws

\RuntimeException When value for argument given is not provided

4 methods override ControllerResolverInterface::getArguments()
ControllerResolver::getArguments in drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Controller/ControllerResolver.php
Returns the arguments to pass to the controller.
TestHttpKernel::getArguments in drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Tests/TestHttpKernel.php
Returns the arguments to pass to the controller.
TestHttpKernel::getArguments in drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Tests/HttpCache/TestHttpKernel.php
Returns the arguments to pass to the controller.
TestMultipleHttpKernel::getArguments in drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Tests/HttpCache/TestMultipleHttpKernel.php
Returns the arguments to pass to the controller.

File

drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Controller/ControllerResolverInterface.php, line 62

Class

ControllerResolverInterface
A ControllerResolverInterface implementation knows how to determine the controller to execute based on a Request object.

Namespace

Symfony\Component\HttpKernel\Controller

Code

public function getArguments(Request $request, $controller);