abstract protected function PluginTypeBasedConverterTrait::doConvert in Plugin 8.2
Converts path variables to their corresponding objects.
Parameters
mixed $value: The raw value.
mixed[] $converter_definition: The converter definition provided in the route options.
Return value
mixed|null The converted parameter value.
Throws
\Exception
1 call to PluginTypeBasedConverterTrait::doConvert()
- PluginTypeBasedConverterTrait::convert in src/
ParamConverter/ PluginTypeBasedConverterTrait.php - Implements \Drupal\Core\ParamConverter\ParamConverterInterface::convert().
3 methods override PluginTypeBasedConverterTrait::doConvert()
- PluginDefinitionConverter::doConvert in src/
ParamConverter/ PluginDefinitionConverter.php - Converts path variables to their corresponding objects.
- PluginInstanceConverter::doConvert in src/
ParamConverter/ PluginInstanceConverter.php - Converts path variables to their corresponding objects.
- PluginTypeConverter::doConvert in src/
ParamConverter/ PluginTypeConverter.php - Converts path variables to their corresponding objects.
File
- src/
ParamConverter/ PluginTypeBasedConverterTrait.php, line 71
Class
- PluginTypeBasedConverterTrait
- Implements \Drupal\Core\ParamConverter\ParamConverterInterface for plugin type-based route parameter converters.
Namespace
Drupal\plugin\ParamConverterCode
protected abstract function doConvert($value, array $converter_definition);