You are here

protected function FormRoute::getController in Drupal 7 to 8/9 Module Upgrader 8

Overrides ContentRoute::getController

File

src/Plugin/DMU/Routing/FormRoute.php, line 95

Class

FormRoute
Plugin annotation @Converter( id = "drupal_get_form", description = @Translation("Converts a drupal_get_form() menu item to a _form route."), dependencies = { "router.route_provider", "plugin.manager.drupalmoduleupgrader.rewriter",…

Namespace

Drupal\drupalmoduleupgrader\Plugin\DMU\Routing

Code

protected function getController(TargetInterface $target, RouteWrapper $route) {
  return $this->formConverter
    ->get($target, $route['page arguments'][0])
    ->render();
}