diff --git a/core/lib/Drupal/Core/ParamConverter/ParamConverterInterface.php b/core/lib/Drupal/Core/ParamConverter/ParamConverterInterface.php index 86ed0b6..9ca00fa 100644 --- a/core/lib/Drupal/Core/ParamConverter/ParamConverterInterface.php +++ b/core/lib/Drupal/Core/ParamConverter/ParamConverterInterface.php @@ -12,13 +12,22 @@ /** * Interface for parameter converters. * - * A ParamConverter is responsible for converting a route parameter - * to a classsed object. + * Classes implementing this interface are responsible for converting a path + * parameter to the object it represents. + * + * Here is an example path: + * @code + * /admin/structure/block/manage/{block} + * @endcode + * In this case, 'block' would be the path parameter which should be turned into + * the block in question for administration. + * + * @see menu */ interface ParamConverterInterface { /** - * Allows to convert variables to their corresponding objects. + * Convert path variables to their corresponding objects. * * @param mixed $value * The raw value. @@ -35,7 +44,7 @@ public function convert($value, $definition, $name, array $defaults); /** - * Determines if the converter applies to a specific route and variable. + * Determine if the converter applies to a specific route and variable. * * @param mixed $definition * The parameter definition provided in the route options.