Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ParamConverterManagerInterface.php

function 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);
RSS feed
Powered by Drupal