You are here

public function ParamConverterInterface::convert in Zircon Profile 8

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

9 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.
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.
MenuLinkPluginConverter::convert in core/lib/Drupal/Core/ParamConverter/MenuLinkPluginConverter.php
Converts path variables to their corresponding objects.

... See full list

File

core/lib/Drupal/Core/ParamConverter/ParamConverterInterface.php, line 47
Contains \Drupal\Core\ParamConverter\ParamConverterInterface.

Class

ParamConverterInterface
Interface for parameter converters.

Namespace

Drupal\Core\ParamConverter

Code

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