You are here

class PluginInstanceParamConverter in Plugin 8.2

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

Hierarchy

Expanded class hierarchy of PluginInstanceParamConverter

File

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

Namespace

Drupal\plugin_test_helper\Controller
View source
class PluginInstanceParamConverter {

  /**
   * Executes the route.
   *
   * @param \Drupal\plugin_test_helper\Plugin\PluginTestHelper\MockPluginInterface $plugin
   *
   * @return string
   */
  public function execute(MockPluginInterface $plugin) {
    return new Response($plugin
      ->getPluginId());
  }

}

Members