ParamConverterManagerInterface::setRouteParameterConverters

public ParamConverterManagerInterface::setRouteParameterConverters(RouteCollection $routes) Saves a list of applicable converters to each route. Parameters \Symfony\Component\Routing\RouteCollection $routes: A collection of routes to apply converters to. File core/lib/Drupal/Core/ParamConverter/ParamConverterManagerInterface.php, line 44 Class ParamConverterManagerInterface Provides an interface for a parameter converter manager. Namespace Drupal\Core\ParamConverter Code public functi

ParamConverterManagerInterface::getConverter

public ParamConverterManagerInterface::getConverter($id) Lazy-loads converter services. Parameters string $id: The service id of converter service to load. Return value \Drupal\Core\ParamConverter\ParamConverterInterface The loaded converter service identified by the given service id. Throws \InvalidArgumentException If the given service id is not a registered converter. File core/lib/Drupal/Core/ParamConverter/ParamConverterManagerInterface.php, line 36 Class ParamConverterManagerInterf

ParamConverterManagerInterface::convert

public ParamConverterManagerInterface::convert(array $defaults) Invokes the registered converter for each defined parameter on a route. Parameters array $defaults: The route defaults array. Return value array The modified defaults. Throws \Drupal\Core\ParamConverter\ParamNotConvertedException If one of the assigned converters returned NULL because the given variable could not be converted. File core/lib/Drupal/Core/ParamConverter/ParamConverterManagerInterface.php, line 59 Class ParamCon

ParamConverterManagerInterface::addConverter

public ParamConverterManagerInterface::addConverter(ParamConverterInterface $param_converter, $id) Registers a parameter converter with the manager. Parameters \Drupal\Core\ParamConverter\ParamConverterInterface $param_converter: The added param converter instance. string $id: The parameter converter service id to register. Return value $this File core/lib/Drupal/Core/ParamConverter/ParamConverterManagerInterface.php, line 22 Class ParamConverterManagerInterface Provides an interface for

ParamConverterManagerInterface

Provides an interface for a parameter converter manager. Hierarchy interface \Drupal\Core\ParamConverter\ParamConverterManagerInterface File core/lib/Drupal/Core/ParamConverter/ParamConverterManagerInterface.php, line 10 Namespace Drupal\Core\ParamConverter Members Name Modifiers Type Description ParamConverterManagerInterface::addConverter public function Registers a parameter converter with the manager. ParamConverterManagerInterface::convert public function In

ParamConverterManager::setRouteParameterConverters

public ParamConverterManager::setRouteParameterConverters(RouteCollection $routes) Saves a list of applicable converters to each route. Parameters \Symfony\Component\Routing\RouteCollection $routes: A collection of routes to apply converters to. Overrides ParamConverterManagerInterface::setRouteParameterConverters File core/lib/Drupal/Core/ParamConverter/ParamConverterManager.php, line 46 Class ParamConverterManager Manages converter services for converting request parameters to full obje

ParamConverterManager::getConverter

public ParamConverterManager::getConverter($converter) Lazy-loads converter services. Parameters string $id: The service id of converter service to load. Return value \Drupal\Core\ParamConverter\ParamConverterInterface The loaded converter service identified by the given service id. Throws \InvalidArgumentException If the given service id is not a registered converter. Overrides ParamConverterManagerInterface::getConverter File core/lib/Drupal/Core/ParamConverter/ParamConverterManager.php, l

ParamConverterManager::convert

public ParamConverterManager::convert(array $defaults) Invokes the registered converter for each defined parameter on a route. Parameters array $defaults: The route defaults array. Return value array The modified defaults. Throws \Drupal\Core\ParamConverter\ParamNotConvertedException If one of the assigned converters returned NULL because the given variable could not be converted. Overrides ParamConverterManagerInterface::convert File core/lib/Drupal/Core/ParamConverter/ParamConverterManager

ParamConverterManager::addConverter

public ParamConverterManager::addConverter(ParamConverterInterface $param_converter, $id) Registers a parameter converter with the manager. Parameters \Drupal\Core\ParamConverter\ParamConverterInterface $param_converter: The added param converter instance. string $id: The parameter converter service id to register. Return value $this Overrides ParamConverterManagerInterface::addConverter File core/lib/Drupal/Core/ParamConverter/ParamConverterManager.php, line 26 Class ParamConverterManage

ParamConverterManager::$converters

Array of loaded converter services keyed by their ids. Type: array File core/lib/Drupal/Core/ParamConverter/ParamConverterManager.php, line 21 Class ParamConverterManager Manages converter services for converting request parameters to full objects. Namespace Drupal\Core\ParamConverter Code protected $converters = array();