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