You are here

class PluginDefinitionParamConverter in Plugin 8.2

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

Hierarchy

Expanded class hierarchy of PluginDefinitionParamConverter

File

tests/modules/plugin_test_helper/src/Controller/PluginDefinitionParamConverter.php, line 11

Namespace

Drupal\plugin_test_helper\Controller
View source
class PluginDefinitionParamConverter {

  /**
   * Executes the route.
   *
   * @param \Drupal\Component\Plugin\Definition\PluginDefinitionInterface $plugin_definition
   *
   * @return string
   */
  public function execute(PluginDefinitionInterface $plugin_definition) {
    return new Response($plugin_definition
      ->getClass());
  }

}

Members