You are here

public function PluginDefinitionParamConverter::execute in Plugin 8.2

Executes the route.

Parameters

\Drupal\Component\Plugin\Definition\PluginDefinitionInterface $plugin_definition:

Return value

string

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

Class

PluginDefinitionParamConverter
Handles the route to test \Drupal\plugin\ParamConverter\PluginDefinitionConverter.

Namespace

Drupal\plugin_test_helper\Controller

Code

public function execute(PluginDefinitionInterface $plugin_definition) {
  return new Response($plugin_definition
    ->getClass());
}