function ParamConverterManagerInterface::convert
Same name in other branches
- 8.9.x core/lib/Drupal/Core/ParamConverter/ParamConverterManagerInterface.php \Drupal\Core\ParamConverter\ParamConverterManagerInterface::convert()
- 10 core/lib/Drupal/Core/ParamConverter/ParamConverterManagerInterface.php \Drupal\Core\ParamConverter\ParamConverterManagerInterface::convert()
- 11.x core/lib/Drupal/Core/ParamConverter/ParamConverterManagerInterface.php \Drupal\Core\ParamConverter\ParamConverterManagerInterface::convert()
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.
1 method overrides ParamConverterManagerInterface::convert()
- ParamConverterManager::convert in core/
lib/ Drupal/ Core/ ParamConverter/ ParamConverterManager.php - Invokes the registered converter for each defined parameter on a route.
File
-
core/
lib/ Drupal/ Core/ ParamConverter/ ParamConverterManagerInterface.php, line 59
Class
- ParamConverterManagerInterface
- Provides an interface for a parameter converter manager.
Namespace
Drupal\Core\ParamConverterCode
public function convert(array $defaults);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.