class PluginDefinitionParamConverter in Plugin 8.2
Handles the route to test \Drupal\plugin\ParamConverter\PluginDefinitionConverter.
Hierarchy
- class \Drupal\plugin_test_helper\Controller\PluginDefinitionParamConverter
Expanded class hierarchy of PluginDefinitionParamConverter
File
- tests/
modules/ plugin_test_helper/ src/ Controller/ PluginDefinitionParamConverter.php, line 11
Namespace
Drupal\plugin_test_helper\ControllerView source
class PluginDefinitionParamConverter {
/**
* Executes the route.
*
* @param \Drupal\Component\Plugin\Definition\PluginDefinitionInterface $plugin_definition
*
* @return string
*/
public function execute(PluginDefinitionInterface $plugin_definition) {
return new Response($plugin_definition
->getClass());
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
PluginDefinitionParamConverter:: |
public | function | Executes the route. |