public function ParamConverterManagerInterface::convert

public ParamConverterManagerInterface::convert(array $defaults)

Invokes the registered converter for each defined parameter on a route.

Parameters

array $defaults: The route defaults array.

Return value

array The modified defaults.

Throws

\Drupal\Core\ParamConverter\ParamNotConvertedException If one of the assigned converters returned NULL because the given variable could not be converted.

File

core/lib/Drupal/Core/ParamConverter/ParamConverterManagerInterface.php, line 59

Class

ParamConverterManagerInterface
Provides an interface for a parameter converter manager.

Namespace

Drupal\Core\ParamConverter

Code

public function convert(array $defaults);

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!ParamConverter!ParamConverterManagerInterface.php/function/ParamConverterManagerInterface::convert/8.1.x