Manages converter services for converting request parameters to full objects.
A typical use case for this would be upcasting (converting) a node id to a node entity.
Hierarchy
- class \Drupal\Core\ParamConverter\ParamConverterManager implements ParamConverterManagerInterface
File
- core/lib/Drupal/Core/ParamConverter/ParamConverterManager.php, line 14
Namespace
Drupal\Core\ParamConverter
Members
Name | Modifiers | Type | Description |
---|---|---|---|
ParamConverterManager::$converters | protected | property | Array of loaded converter services keyed by their ids. |
ParamConverterManager::addConverter | public | function | Registers a parameter converter with the manager. Overrides ParamConverterManagerInterface::addConverter |
ParamConverterManager::convert | public | function | Invokes the registered converter for each defined parameter on a route. Overrides ParamConverterManagerInterface::convert |
ParamConverterManager::getConverter | public | function | Lazy-loads converter services. Overrides ParamConverterManagerInterface::getConverter |
ParamConverterManager::setRouteParameterConverters | public | function | Saves a list of applicable converters to each route. Overrides ParamConverterManagerInterface::setRouteParameterConverters |
Please login to continue.