PluginTypeParamConverter.php in Plugin 8.2
Namespace
Drupal\plugin_test_helper\ControllerFile
tests/modules/plugin_test_helper/src/Controller/PluginTypeParamConverter.phpView source
<?php
namespace Drupal\plugin_test_helper\Controller;
use Drupal\plugin\PluginType\PluginTypeInterface;
use Symfony\Component\HttpFoundation\Response;
/**
* Handles the route to test \Drupal\plugin\ParamConverter\PluginTypeConverter.
*/
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());
}
}
Classes
Name | Description |
---|---|
PluginTypeParamConverter | Handles the route to test \Drupal\plugin\ParamConverter\PluginTypeConverter. |