public function 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

ParamConverterManagerInterface
Provides an interface for a parameter converter manager.

Namespace

Drupal\Core\ParamConverter

Code

public function getConverter($id);

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!ParamConverter!ParamConverterManagerInterface.php/function/ParamConverterManagerInterface::getConverter/8.1.x