function ParamConverterManagerInterface::addConverter
Same name in other branches
- 9 core/lib/Drupal/Core/ParamConverter/ParamConverterManagerInterface.php \Drupal\Core\ParamConverter\ParamConverterManagerInterface::addConverter()
- 10 core/lib/Drupal/Core/ParamConverter/ParamConverterManagerInterface.php \Drupal\Core\ParamConverter\ParamConverterManagerInterface::addConverter()
- 11.x core/lib/Drupal/Core/ParamConverter/ParamConverterManagerInterface.php \Drupal\Core\ParamConverter\ParamConverterManagerInterface::addConverter()
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
1 method overrides ParamConverterManagerInterface::addConverter()
- ParamConverterManager::addConverter in core/
lib/ Drupal/ Core/ ParamConverter/ ParamConverterManager.php - Registers a parameter converter with the manager.
File
-
core/
lib/ Drupal/ Core/ ParamConverter/ ParamConverterManagerInterface.php, line 22
Class
- ParamConverterManagerInterface
- Provides an interface for a parameter converter manager.
Namespace
Drupal\Core\ParamConverterCode
public function addConverter(ParamConverterInterface $param_converter, $id);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.