public function RunConverter::convert in XHProf 8
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.
Overrides ParamConverterInterface::convert
File
- src/
Routing/ RunConverter.php, line 37
Class
- RunConverter
- Casts run identifier into Run object.
Namespace
Drupal\xhprof\RoutingCode
public function convert($value, $definition, $name, array $defaults) {
try {
return $this->profiler
->getRun($value);
} catch (\Exception $e) {
return NULL;
}
}