You are here

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

1 call to ContentRoute::getController()
ContentRoute::buildRoute in src/Plugin/DMU/Routing/ContentRoute.php
Builds the Drupal 8 route, making any needed changes to the original module and/or callback.
1 method overrides ContentRoute::getController()
FormRoute::getController in src/Plugin/DMU/Routing/FormRoute.php

File

src/Plugin/DMU/Routing/ContentRoute.php, line 233

Class

ContentRoute
Plugin annotation @Converter( id = "default", description = @Translation("Converts a menu item to a _controller route."), dependencies = { "router.route_provider", "plugin.manager.drupalmoduleupgrader.rewriter" } )

Namespace

Drupal\drupalmoduleupgrader\Plugin\DMU\Routing

Code

protected function getController(TargetInterface $target, Drupal7Route $route) {
  $render = [
    '#theme' => 'dmu_controller',
    '#module' => $target
      ->id(),
  ];
  return $this
    ->parse($render);
}