function ParamConverterManagerInterface::getConverter

Same name in other branches
  1. 8.9.x core/lib/Drupal/Core/ParamConverter/ParamConverterManagerInterface.php \Drupal\Core\ParamConverter\ParamConverterManagerInterface::getConverter()
  2. 10 core/lib/Drupal/Core/ParamConverter/ParamConverterManagerInterface.php \Drupal\Core\ParamConverter\ParamConverterManagerInterface::getConverter()
  3. 11.x core/lib/Drupal/Core/ParamConverter/ParamConverterManagerInterface.php \Drupal\Core\ParamConverter\ParamConverterManagerInterface::getConverter()

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.

1 method overrides ParamConverterManagerInterface::getConverter()
ParamConverterManager::getConverter in core/lib/Drupal/Core/ParamConverter/ParamConverterManager.php
Lazy-loads converter services.

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);

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.