function ParamConverterInterface::convert
Same name in other branches
- 9 core/lib/Drupal/Core/ParamConverter/ParamConverterInterface.php \Drupal\Core\ParamConverter\ParamConverterInterface::convert()
- 8.9.x core/lib/Drupal/Core/ParamConverter/ParamConverterInterface.php \Drupal\Core\ParamConverter\ParamConverterInterface::convert()
- 11.x core/lib/Drupal/Core/ParamConverter/ParamConverterInterface.php \Drupal\Core\ParamConverter\ParamConverterInterface::convert()
Converts path variables to their corresponding objects.
Parameters
mixed $value: The raw value.
mixed $definition: The parameter definition provided in the route options.
string $name: The name of the parameter.
array $defaults: The route defaults array.
Return value
mixed|null The converted parameter value.
12 methods override ParamConverterInterface::convert()
- AdminPathConfigEntityConverter::convert in core/
lib/ Drupal/ Core/ ProxyClass/ ParamConverter/ AdminPathConfigEntityConverter.php - Converts path variables to their corresponding objects.
- EntityConverter::convert in core/
lib/ Drupal/ Core/ ParamConverter/ EntityConverter.php - Converts path variables to their corresponding objects.
- EntityRevisionParamConverter::convert in core/
lib/ Drupal/ Core/ ParamConverter/ EntityRevisionParamConverter.php - Converts path variables to their corresponding objects.
- LanguageConverter::convert in core/
modules/ language/ src/ LanguageConverter.php - Converts path variables to their corresponding objects.
- LanguageConverter::convert in core/
modules/ language/ src/ ProxyClass/ LanguageConverter.php - Converts path variables to their corresponding objects.
File
-
core/
lib/ Drupal/ Core/ ParamConverter/ ParamConverterInterface.php, line 42
Class
- ParamConverterInterface
- Interface for parameter converters.
Namespace
Drupal\Core\ParamConverterCode
public function convert($value, $definition, $name, array $defaults);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.