You are here

public function ParamConverterInterface::convert in Drupal 8

Same name and namespace in other branches
  1. 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.

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.

... See full list

File

core/lib/Drupal/Core/ParamConverter/ParamConverterInterface.php, line 42

Class

ParamConverterInterface
Interface for parameter converters.

Namespace

Drupal\Core\ParamConverter

Code

public function convert($value, $definition, $name, array $defaults);