You are here

function shorten_cs_edit_form in Shorten URLs 8

Same name and namespace in other branches
  1. 7.2 shorten_cs.admin.inc \shorten_cs_edit_form()
  2. 7 shorten_cs.admin.inc \shorten_cs_edit_form()

Returns HTML representing the shorten service edit form.

1 string reference to 'shorten_cs_edit_form'
shorten_cs_menu in modules/shorten_cs/shorten_cs.module
Implements hook_menu().

File

modules/shorten_cs/shorten_cs.admin.inc, line 19
Provides the configuration page for Shorten URLs Custom Services.

Code

function shorten_cs_edit_form($service) {
  $form = \Drupal::formBuilder()
    ->getForm('shorten_cs_edit', $service);
  return \Drupal::service("renderer")
    ->render($form);
}