Skip to content
Snippets Groups Projects
Commit 8df466d5 authored by Jess's avatar Jess
Browse files

Issue #2087103 by Mile23, rickwelch, jhodgdon, Crell, joachim:...

Issue #2087103 by Mile23, rickwelch, jhodgdon, Crell, joachim: ParamConverterInterface one-line description doesn't explain what the class does
parent f559ff78
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -11,11 +11,26 @@ ...@@ -11,11 +11,26 @@
/** /**
* Interface for parameter converters. * Interface for parameter converters.
*
* Classes implementing this interface are responsible for converting a path
* parameter to the object it represents.
*
* Here is an example path: /admin/structure/block/manage/{block}
*
* In this case, '{block}' would be the path parameter which should be turned
* into a block object representing the block in question.
*
* ParamConverters are defined as services tagged with 'paramconverter', and are
* managed by the 'paramconverter_manager' service.
*
* @see menu
* @see \Drupal\Core\ParamConverter\ParamConverterManagerInterface
* @see \Drupal\Core\ParamConverter\EntityConverter
*/ */
interface ParamConverterInterface { interface ParamConverterInterface {
/** /**
* Allows to convert variables to their corresponding objects. * Converts path variables to their corresponding objects.
* *
* @param mixed $value * @param mixed $value
* The raw value. * The raw value.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment