class PluginTypeParamConverter in Plugin 8.2
Handles the route to test \Drupal\plugin\ParamConverter\PluginTypeConverter.
Hierarchy
- class \Drupal\plugin_test_helper\Controller\PluginTypeParamConverter
Expanded class hierarchy of PluginTypeParamConverter
File
- tests/
modules/ plugin_test_helper/ src/ Controller/ PluginTypeParamConverter.php, line 10
Namespace
Drupal\plugin_test_helper\ControllerView source
class PluginTypeParamConverter {
/**
* Executes the route.
*
* @param \Drupal\plugin\PluginType\PluginTypeInterface $plugin_type
*
* @return string
*/
public function execute(PluginTypeInterface $plugin_type) {
return new Response($plugin_type
->getId());
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
PluginTypeParamConverter:: |
public | function | Executes the route. |