You are here

public function PluginTypeParamConverter::execute in Plugin 8.2

Executes the route.

Parameters

\Drupal\plugin\PluginType\PluginTypeInterface $plugin_type:

Return value

string

1 string reference to 'PluginTypeParamConverter::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/PluginTypeParamConverter.php, line 19

Class

PluginTypeParamConverter
Handles the route to test \Drupal\plugin\ParamConverter\PluginTypeConverter.

Namespace

Drupal\plugin_test_helper\Controller

Code

public function execute(PluginTypeInterface $plugin_type) {
  return new Response($plugin_type
    ->getId());
}