You are here

class PluginTypeParamConverter in Plugin 8.2

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

Hierarchy

Expanded class hierarchy of PluginTypeParamConverter

File

tests/modules/plugin_test_helper/src/Controller/PluginTypeParamConverter.php, line 10

Namespace

Drupal\plugin_test_helper\Controller
View source
class PluginTypeParamConverter {

  /**
   * Executes the route.
   *
   * @param \Drupal\plugin\PluginType\PluginTypeInterface $plugin_type
   *
   * @return string
   */
  public function execute(PluginTypeInterface $plugin_type) {
    return new Response($plugin_type
      ->getId());
  }

}

Members