public function ParamConverterInterface::convert in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/ParamConverter/ParamConverterInterface.php \Drupal\Core\ParamConverter\ParamConverterInterface::convert()
- 9 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.
4 methods override ParamConverterInterface::convert()
- AdminPathConfigEntityConverter::convert in core/
lib/ Drupal/ Core/ ProxyClass/ ParamConverter/ AdminPathConfigEntityConverter.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.
- LayoutSectionStorageParamConverter::convert in core/
modules/ layout_builder/ src/ Routing/ LayoutSectionStorageParamConverter.php - Converts path variables to their corresponding objects.
- MenuLinkPluginConverter::convert in core/
lib/ Drupal/ Core/ ProxyClass/ ParamConverter/ MenuLinkPluginConverter.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);