DefaultController.php in Shorten URLs 8
Same filename in this branch
Same filename and directory in other branches
Namespace
Drupal\shorten_cs\ControllerFile
modules/shorten_cs/src/Controller/DefaultController.phpView source
<?php
/**
* @file
* Contains \Drupal\shorten_cs\Controller\DefaultController.
*/
namespace Drupal\shorten_cs\Controller;
use Drupal\Core\Controller\ControllerBase;
/**
* Default controller for the shorten_cs module.
*/
class DefaultController extends ControllerBase {
public function shorten_cs_edit_form($service) {
$form = \Drupal::formBuilder()
->getForm('shorten_cs_edit', $service);
return \Drupal::service("renderer")
->render($form);
}
public function shorten_cs_delete_form($service) {
$form = \Drupal::formBuilder()
->getForm('shorten_cs_delete', $service);
return \Drupal::service("renderer")
->render($form);
}
}
Classes
Name![]() |
Description |
---|---|
DefaultController | Default controller for the shorten_cs module. |