public function PluginInstanceParamConverter::execute in Plugin 8.2
Executes the route.
Parameters
\Drupal\plugin_test_helper\Plugin\PluginTestHelper\MockPluginInterface $plugin:
Return value
string
1 string reference to 'PluginInstanceParamConverter::execute'
- plugin_test_helper.routing.yml in tests/
modules/ plugin_test_helper/ plugin_test_helper.routing.yml - tests/modules/plugin_test_helper/plugin_test_helper.routing.yml
File
- tests/
modules/ plugin_test_helper/ src/ Controller/ PluginInstanceParamConverter.php, line 19
Class
- PluginInstanceParamConverter
- Handles the route to test \Drupal\plugin\ParamConverter\PluginInstanceConverter.
Namespace
Drupal\plugin_test_helper\ControllerCode
public function execute(MockPluginInterface $plugin) {
return new Response($plugin
->getPluginId());
}